Api Ping

From PhotoblogWiki

Jump to: navigation, search

This is a section where you can send a ping back to the server to make sure your session ID you got from the Api Login from timing out.

[edit] Valid Request

<photoblog>
    <session>SESSION ID</session>
</photoblog>

You must send that request to the following URL

 http://www.photoblog.com/api/ping/

Your session id is the 50 character session id you got from a valid Api Login

<photoblog>
   <success>1</success>
</photoblog>

If you get a success of 1 back you have made a valid request.

[edit] Errors

If you get the following xml back, you have an error in your request.

<photoblog>
    <success>0</success>
</photoblog>


The only return will be 0 which means your session has probably timed out.

Personal tools