Returns info about the current OAuth access token. If the token is a user token the response will include a User object.
Method | URL | Token |
---|---|---|
GET | https://alpha-api.app.net/stream/0/token | Any |
curl -H "Authorization: Bearer <YOUR APP TOKEN>" -H "X-ADN-Pretty-JSON: 1" \
"https://alpha-api.app.net/stream/0/token"
{
"data": {
"app": {
"client_id": "LHYCvdgDuUXndfCfyqABAtezCJjjsVM2",
"link": "http://foo.example.com",
"name": "Test app"
},
"scopes": [
"stream",
"messages",
"export",
"write_post",
"follow"
],
"limits": {
"following": 40,
"max_file_size": 10000000
},
"storage": {
"available": 8787479688,
"used": 1212520312
},
"user": "...user object...",
"invite_link": "https://join.app.net/from/notareallink"
},
"meta": {
"code": 200
}
}
curl -H "Authorization: Bearer <YOUR ACCESS TOKEN>" -H "X-ADN-Pretty-JSON: 1" \
"https://alpha-api.app.net/stream/0/token"
{
"data": {
"app": {
"client_id": "LHYCvdgDuUXndfCfyqABAtezCJjjsVM2",
"link": "http://foo.example.com",
"name": "Test app"
},
"scopes": [
"stream",
"messages",
"export",
"write_post",
"follow"
],
"limits": {
"following": 40,
"max_file_size": 10000000
},
"storage": {
"available": 8787479688,
"used": 1212520312
},
"user": "...user object...",
"invite_link": "https://join.app.net/from/notareallink"
},
"meta": {
"code": 200
}
}
Deauthorize the current OAuth access token. This works for User tokens and App tokens.
Method | URL | Token |
---|---|---|
DELETE | https://alpha-api.app.net/stream/0/token | Any |
Requested with a user access token:
curl -X DELETE -H "Authorization: Bearer <YOUR ACCESS TOKEN>" -H "X-ADN-Pretty-JSON: 1" \
"https://alpha-api.app.net/stream/0/token"
{
"data": {
"app": {
"client_id": "LHYCvdgDuUXndfCfyqABAtezCJjjsVM2",
"link": "http://foo.example.com",
"name": "Test app"
},
"scopes": [
"stream",
"messages",
"export",
"write_post",
"follow"
],
"limits": {
"following": 40,
"max_file_size": 10000000
},
"storage": {
"available": 8787479688,
"used": 1212520312
},
"user": "...user object...",
"invite_link": "https://join.app.net/from/notareallink"
},
"meta": {
"code": 200
}
}
Returns a list of ids of Users that have authorized an app. Must be requested using an app access token.
Method | URL | Token |
---|---|---|
GET | https://alpha-api.app.net/stream/0/apps/me/tokens/user_ids | App |
curl -H "Authorization: Bearer <YOUR APP TOKEN>" -H "X-ADN-Pretty-JSON: 1" \
"https://alpha-api.app.net/stream/0/apps/me/tokens/user_ids"
{
"data": [
"2",
"3"
],
"meta": {
"code": 200
}
}
Returns a list of User tokens corresponding to an app token. Must be requested using an app access token.
Responses from this endpoint are paginated.
Method | URL | Token |
---|---|---|
GET | https://alpha-api.app.net/stream/0/apps/me/tokens | App |
curl -H "Authorization: Bearer <YOUR APP TOKEN>" -H "X-ADN-Pretty-JSON: 1" \
"https://alpha-api.app.net/stream/0/apps/me/tokens"
{
"data": [
{
"app": {
"client_id": "LHYCvdgDuUXndfCfyqABAtezCJjjsVM2",
"link": "http://foo.example.com",
"name": "Test app"
},
"scopes": [
"stream",
"messages",
"export",
"write_post",
"follow"
],
"limits": {
"following": 40,
"max_file_size": 10000000
},
"storage": {
"available": 8787479688,
"used": 1212520312
},
"user": "...user object...",
"invite_link": "https://join.app.net/from/notareallink",
"pagination_id": "10723"
}
],
"meta": {
"code": 200,
"more": false,
"min_id": "10723",
"max_id": "10723"
}
}