JL Forums

How to Generate Varients from the Best Spinner

0 Members and 1 Guest are viewing this topic.

How to Generate Varients from the Best Spinner
« on: February 12, 2013, 09:18:42 PM »
hi .. i have an account of bestspinner.com

and i have an api through whichi can spin my content from my php website editor. thebestspinner.com/apiexample.txt

But i dont know how to generate varients from best spinner ..

can somebody provide me the url or api through which i can achieve this using php ?

please help me ..

Re: How to Generate Varients from the Best Spinner
« Reply #1 on: February 12, 2013, 09:39:50 PM »
ok .. i have implemented .. if someone stuck the same .. here below the demo code .. you can modify it from yourside ..


$session = $_SESSION['session_id'];
   $text= "{ASP|Or net}.{NET|Internet|Web|World wide web} {is a|is really a|can be a|is often a} server-side Web application framework {designed for|created for|made for|suitable for} Web development {to produce|to create|to make|to generate} dynamic Web pages. {It was|It had been|It absolutely was|It turned out} {developed by|produced by|put together by|manufactured by} Microsoft {to allow|to permit|allowing|to allow for} programmers {to build|to construct|to create|to develop} {dynamic|powerful|energetic|vibrant} web sites, web applications and web services. {It was first|It was initially} {released|launched|introduced|unveiled} in {January|The month of january|Jan|Present cards} 2002 with {version|edition|model|variation} 1. {of the|from the|with the|in the} .NET Framework, {and is|and it is|and is also|which is} the {successor|heir|champion|winner} to {Microsoft's|Windows} Web application framework0 ({ASP|Or net}) {technology|technologies|engineering|technological innovation}. {ASP|Or net}.{NET|Internet|Web|World wide web} {is built|is made|is created|was made} {on the|around the|about the|for the} Web application framework1 (CLR), {allowing|permitting|enabling|making it possible for} {programmers|developers|computer programmers|software engineers} {to write|to create|to publish|to write down} {ASP|Or net}.{NET|Internet|Web|World wide web} {code|signal|program code|rule} {using|utilizing|making use of|employing} any {supported|backed|reinforced|recognized} Web application framework2. The {ASP|Or net}.{NET|Internet|Web|World wide web} Web application framework3 {extension|expansion|file format|off shoot} {framework|construction|platform|composition} {allows|enables|permits|makes it possible for} {ASP|Or net}.{NET|Internet|Web|World wide web} {components|elements|parts|factors} to {process|procedure|method|course of action} {SOAP|Cleaning soap|Detergent|Cleansing soap} {messages|communications|emails|mail messages}.

{After|Following|Right after|Soon after} {four years|4 years} of {development|improvement|advancement|growth}, and {a series of|a number of|some|a few} {beta|experiment with|'beta'|try out} {releases|produces|emits|secretes} in 2000 and 2001, {ASP|Or net}.{NET|Internet|Web|World wide web} 1. {was released|was launched|premiered|was published} on {January|The month of january|Jan|Present cards} 5, 2002 {as part of|included in|within|in} {version|edition|model|variation} 1. {of the|from the|with the|in the} .NET Framework. Even {prior to the|before the|ahead of the|prior to} {release|launch|discharge|relieve}, {dozens of|a large number of|lots of|many} {books|publications|guides|textbooks} {had been|have been|ended up|was} {written about|discussed|discussing|revealed} {ASP|Or net}.{NET|Internet|Web|World wide web},Web application framework5 and {Microsoft|Ms|Microsof company|'microsoft'} {promoted|marketed|advertised|endorsed} it {heavily|seriously|greatly|intensely} {as part of|included in|within|in} its {platform|system|program|podium} for {Web|Internet|Net|World wide web} {services|providers|solutions|companies}. Scott Guthrie {became the|had become the|took over as|took over as the} {product|item|merchandise|product or service} {unit|device|product|system} {manager|supervisor|director|boss} for {ASP|Or net}.{NET|Internet|Web|World wide web}, and {development|improvement|advancement|growth} {continued|ongoing|continuing|carried on} apace, with {version|edition|model|variation} 1.1 {being released|released|developing|hitting theaters} on {April|04|Apr|The spring} 24, 2003 {as a part of|as part of|as an element of|in} Web application framework6. This {release|launch|discharge|relieve} {focused on|centered on|dedicated to|devoted to} {improving|enhancing|bettering|increasing} {ASP|Or net}.{NET's|Web's} {support|assistance|help|assist} for {mobile devices|cellular devices|mobile phones|cellular phones}.";
   # Build the data array for the example.
   $data = array();
   $data['session'] = $session;
   $data['format'] = 'php'; # You can also specify 'xml' as the format.
   $data['text'] = $text;
   $data['action'] = 'randomSpin';
   $data['maxsyns'] = '3'; # The number of synonyms per term.
   $output = spin_curl_post($spin_url, $data, $info);
   $output = unserialize($output);
      $op=str_replace("\r", "<br>", $output['output']);