SpinnerChief Developer API provides an easy interface to programmers to use spinnerchief's function in themselves program directly. For easy, we call it SCAPI now.& |, c6 ~9 E6 y5 d( q
) G$ s; T& M) x- E# P, q) Y0 t
SCAPI is very easy to use. It uses Http Post protocol to accept your command and give back result.Basically, you can see SpinnerChief as a spinner server, you can post your articles to SpinnerChief and then SpinnerChief will return new articles. So you can just run SpinnerChief at your local computer and set the listen ip and port to be 127.0.0.1:9001, and use yourself program to communicate with SpinnerChief by http protocol. Or you can run SpinnerChief on a real server and set the server's ip and a port in SpinnerChief, and use your program to connect Spinnerchief remotely by the same http protocol. B8 g9 c3 d, ]4 \3 R! A. ^
1 q5 `, _7 ]' J' e+ I5 d& Q# F
For enable SpinnerChief to work as a spinner server, you need click the "Begin to listen" button in the "Developer API" tab in SpinnerChief program. After that, you can begin to send command to SpinnerChief. If you want to stop SpinnerChief as spinner server, just click the "Stop" button. % Q0 v5 l# a! D5 s/ l a
) F l3 W7 r7 g
* j8 w: z% m) V/ I, D h# k" X5 O
OK, now let's go to the detail of SCAPI. # @; `3 K( P; U- ~1 G( c2 Q, V& \
# F& u, E' D" `! n
The http post url is http://ip:port/spintype=0&spinfreq=4&synonymsdatabase=0&favoriatecategory=all&autospin=1 % {; d( B N! l" s" e. C
/ e' p6 T' ]" L3 u1 C6 e
If you run spinnerchief as spinner server at local computer, the post url will be like http://127.0.0.1:9001/spintype=0&spinfreq=4&synonymsdatabase=0&favoriatecategory=all&autospin=12 i% v, Q$ M) A: z. M) g5 r/ a
" f4 C! E, J6 g
If you run spinnerchief as spinner server at your server, the post url will be like http://yourserverip:9001/spintype=0&spinfreq=4&synonymsdatabase=0&favoriatecategory=all&autospin=13 e# x6 n, \6 m# s( |
) r e! o- y8 s' {$ [
The http post data is your article. X4 Z* [9 v# e+ a( O" E" U, k& P
% u4 G" W! ]( u7 b6 S
When spintype=0, SpinnerChief will return {} format spun artilce. For example, your article is "This is a great software", the return will be "{It|This} {is|must be} a {good|nice} {software|program}".# S* @6 k3 r( q" J% T ^
/ @- N: E3 u- Y' g3 T9 g1 \
when spintype=1, SpinnerChief will return spun artilce directly. For example, your article is "This is a great software", the return will be "It is a nice program".4 B9 W: V# E+ q2 J; w9 A; Q
$ q5 E2 r" a& ]: m$ f
The spinfreq means word spin frequency, for example if spinfreq=1, every words will be spun, if spinfreq=3, 1/3 words will be spun, etc.0 C7 w7 F9 N. T( S3 T/ S2 |4 h
: u& C4 _7 k* L! B- C. q: g8 C2 |
When synonymsdatabase=0, SpinnerChief will only use the synonyms database you loaded to spin the article. ) _# m; a6 D! X6 l- p7 G h
8 @( Z2 G9 X1 u
when synonymsdatabase=1, SpinnerChief will only your favoriate synonyms database to spin the article. 9 Y" k0 N! B! L2 x$ a
( _$ [5 r$ n" w7 t$ o8 U2 X+ e
when synonymsdatabase=2, SpinnerChief will use both the synonyms database you loaded and your favoriate synonyms database to spin the article. % |! f% R8 N, @- {
' w [: T, ], P
When you set synonymsdatabase to be 1 or 2, you need set the favoriatecategory parameter, favoriatecategory means the synonyms category you want to use to spin the article. 5 I0 u# ^. O8 y
& v+ u9 D4 K! R9 i. s2 v* Y
When autospin=0, SpinnerChief will not spin the words in your article without {} format. For example, if you post an article like "{It|This} is a good software", SpinnerChief will only spin {It|This} part, other words will not get spun. 6 `# W6 B0 q+ u* d+ Q0 K; N
0 n* d% Y+ Q) Y1 h E
When autospin=1, SpinnerChief will auto-spin the words in your article without {} format. For example, if you post an article like "{It|This} is a good software", SpinnerChief will not only spin {It|This} part, but also spin the words "good" and "software", so the return would be "This is a great program". - L8 ~; U* G- z
! j1 O: c1 b+ o
Ok, that is all. Now you can get a demo code to use SCAPI, download the source code at http://download.spinnerchief.com/scapi.zip, this is written using c#. / n) p8 j$ U; V O( {3 a