API Manual

You can upload your files by your languages through our API system.

You can upload files with our API:
and you can program in any lanuage. here is examples of using form and CURL
There are 3 steps to use it. 1. Login 2. Get uploading server URL and session id 3. Start upload. CUR Exampe:

1. D:\>curl --data "login=xxx&password=xxx&op=login" "http://subyshare.com/cgi-bin/cAPI.cgi"
2. http://xxx.subyshare.com/cgi-bin/cUpload.cgi?utype=prem&upload_id=&sess_id=n6gy5c8ky1dffefg
3. D:\>curl --form file=@wp-config.rar --form utype=prem --form sess_id=n6gy5c8ky1dffefg http://xxx.subyshare.com/cgi-bin/cUpload.cgi


Web Form:

1.
<form method="post" enctype="multipart/form-data" action="http://subyshare.com/cgi-bin/cAPI.cgi">
<input type="text" name="login" value="">
<input type="password" name="password" value="">
<input type="hidden" name="op" value="login">
<input type="submit">
</form>

2.
http://xxx.subyshare.com/cgi-bin/cUpload.cgi?utype=prem&upload_id=&sess_id=n6gy5c8ky1dffefg
3.
<form method="post" enctype="multipart/form-data" action="http://xxx.subyshare.com/cgi-bin/cUpload.cgi">
<input type="file" name="file" value="xxx.rar">
<input type="hidden" name="type" value="prem">
<input type="hidden" name="sess_id" value="xxxxx">
<input type="submit">
</form>