SoapApiImpl SOAP WebService interface description

Endpoint URI: http://sdelanounas.ru/api/

WSDL URI: http://sdelanounas.ru/api/?WSDL

PHP SOAP client download URI: http://sdelanounas.ru/api/?PHPSOAPCLIENT

Index

Public methods:

Public methods

addComment

integer addComment (
    string auth_code,
    integer post_id,
    string text,
    integer parent_id
)

Add comment to post.

Return value integer: - Id of new comment or false

addUser

integer addUser (
    string login,
    string email,
    string password
)

Add user.

Return value integer: - Id of new user or error code (-10004 - user exists, -10005 - email exists)

authUser

string- authUser (
    string login,
    string pass,
    string ip
)

Auth user by login or email

Return value string-: Auth code or error code or false, if user not found

dislike

array dislike (
    string auth_code,
    integer post_id
)

dislike

Return value array: - rate of record or error code (-10001 - empty arguments, 10002 - user not found, 10003 - some error)

dislikeComment

array dislikeComment (
    string auth_code,
    integer comment_id
)

dislike comment

Return value array: - rate of comment or error code (-10001 - empty arguments, 10002 - user not found, 10003 - some error)

emailExists

bool emailExists ( string email )

Check email exists by login

Return value bool: - TRUE if email exists

getBestByDate

array getBestByDate (
    integer from,
    integer to,
    integer blog_id,
    string auth_code
)

List of best records by date interval. Max one month

Return value array: - list of best posts

getBlogs

array getBlogs ( )

List of blogs, like there: http://sdelanounas.ru/blogs/public/

Return value array: - List of blogs

getComments

array getComments (
    integer id,
    integer pid,
    string auth_code
)

Get comments for selected record

Return value array: - Comments list

getCommentsAddedByDate

array getCommentsAddedByDate (
    integer from,
    integer to,
    integer id,
    string auth_code
)

Get added comments by date

Return value array: - Comments list (id and edit date fields)

getCommentsByDate

array getCommentsByDate (
    integer id,
    integer from,
    integer to,
    string auth_code
)

Get comments by date

Return value array: - Comments list (id and edit date fields)

getCommentsEditedByDate

array getCommentsEditedByDate (
    integer from,
    integer to,
    integer id,
    string auth_code
)

Get edited comments by date

Return value array: - Comments list (id and edit date fields)

getDeletedByDate

array getDeletedByDate (
    integer from,
    integer to,
    integer blog_id
)

List of deleted records by date interval. Max one month

Return value array: - ID list of deleted posts

getEditedByDate

array getEditedByDate (
    integer from,
    integer to,
    integer blog_id
)

List of edited records by date interval. Max one month

Return value array: - list of edited posts

getEditedIdsByDate

array getEditedIdsByDate (
    integer from,
    integer to
)

List IDs of edited records by date interval.

Return value array: - list of edited posts

getFavorites

array getFavorites (
    integer count,
    integer random,
    integer id,
    string auth_code
)

Get favorites records

Return value array: - List of posts

getFeed

array getFeed (
    integer blog_id,
    integer page,
    boolean hide_offtop,
    integer count,
    string auth_code
)

List of posts, like there: http://sdelanounas.ru/blogs/

Return value array: - Feed of posts

getFeedByDate

array getFeedByDate (
    integer from,
    integer to,
    integer blog_id,
    boolean hide_offtop,
    string auth_code
)

Get list of records by date interval. Max one month

Return value array: - List of records

getFeedIdsByDate

array getFeedIdsByDate (
    integer from,
    integer to
)

Get list IDs of records by date interval.

Return value array: - List of records

getInfo

array getInfo ( )

Get getInfo

Return value array: - phpinfo

getIp

string getIp ( )

Get IP

Return value string: - Ip

getPost

array getPost (
    integer id,
    string auth_code
)

Get some post by ID

Return value array: - Requested post as list of fields

getRatingByDate

array getRatingByDate (
    integer from,
    integer to
)

Get list rates of records by date interval.

Return value array: - List of records

getUser

array getUser ( integer id )

Get some user by ID

Return value array: - Requested user as list of fields

isAuthorised

array isAuthorised ( string code )

Check authorization

Return value array: - user info or empty array, if user not found

like

array like (
    string auth_code,
    integer post_id
)

like

Return value array: - rate of record or error code (-10001 - empty arguments, 10002 - user not found, 10003 - some error)

likeComment

array likeComment (
    string auth_code,
    integer comment_id
)

like comment

Return value array: - rate of comment or error code (-10001 - empty arguments, 10002 - user not found, 10003 - some error)

logout

boolean logout ( string login )

Auth user by email

Return value boolean: - return true

userExists

bool userExists ( string login )

Check user exists by login

Return value bool: - TRUE if user exists


Powered by PhpWsdl - PDF download: Download this page as PDF