Skip to content
thergbway edited this page Feb 17, 2016 · 41 revisions

1. Authentification

1.1 User authentification

Request: POST /auth
Request Body:

{
    !"code": STRING,
    !"redirectURI": STRING,
    !"ruberAppId": INT,
    !"ruberAppSecret": STRING
}

Request Headers:
Accept=application/json
Content-Type=application/json
Response:

{
    !"ruberAccessToken": STRING,
    !"vkId": INT
}

2. Groups

Object Group

{
    !"vkId": INT,  
    !"name": STRING,
    !"market": Market
}

Object Market

{
    !"enabled": BOOLEAN,
    "itemsCount": INT
}
2.1 Get user groups

Request: GET /groups
Request Params: count, offset, !accessToken
Request Headers: Accept=application/json
Response:

{
    !"totalCount": INT,
    !"groups": Group[]
}

Clone this wiki locally