GET login/apps/social apps
(Difference between revisions)
Ivan.filho (Talk | contribs) (→Response Body) |
|||
Line 34: | Line 34: | ||
{| | {| | ||
! align="left" width="200px" | type | ! align="left" width="200px" | type | ||
− | | Social App type, "facebook", "twitter", "linkedin" | + | | Social App type, "facebook", "twitter", "linkedin", "gplus", "instagram" or "apple". |
|- | |- | ||
! align="left" width="200px" | name | ! align="left" width="200px" | name |
Revision as of 19:15, 26 February 2020
Contents |
Description
Returns all Social Apps from the Social Login App.
This API does not return data from the Social Apps that are created automatically by the system, only from those explicitly created by the user.
Resource URL
GET https://api.socialidnow.com/v1/marketing/login/apps/social_apps
Authentication
This API requires Social Login App authentication. See Authentication.
Response
Response Status
ok (200) | The Social Apps were returned succesfully. |
---|---|
unauthorized (401) | The authentication is wrong. See Authentication. |
internal_server_error (500) | An unknown error happened. |
Response Body
Array of Social Apps, each with the following possible fields:
type | Social App type, "facebook", "twitter", "linkedin", "gplus", "instagram" or "apple". |
---|---|
name | Social App name. |
token | Social App token. |
secret | Social App secret. |
scope_permissions | array with Social App permissions. |
Examples
Request
Return all Social Apps from the Social Login App.
curl -X GET 'https://api.socialidnow.com/v1/marketing/login/apps/social_apps' \ --user 138:e8b9ca24f1b590af67e6271297d6e1f7226625d61c5b5daa1b2f215464e292cf
Response
Response Headers
HTTP/1.1 200 Ok Status: 200
Response Body
{ [ { "type":"facebook", "name":"Facebook app", "token":"9OAby27Ww3D3TSd", "secret":"wJno7VaeJ83u6J4aP8KnIxz4VrOXNT4f", "scope_permissions":["publish_stream", "email"] }, { "type":"twitter", "name":"Twitter app", "token":"vKF863WIjlGMRdPXtVmV", "secret":"CuppGhJcS3xpS4QC8fSUgZAvwAYqFJVSsmPNBz0J", "scope_permissions":[] }, { "type":"linkedin", "name":"Linkedin app", "token":"4sh1nTK9EPza", "secret":"SrqNgyRnogUElJ9Z", "scope_permissions":[] }, { "type":"gplus", "name":"Google+ app", "token":"4sh1nTADK9EPza", "secret":"AD3SrqNgyRnogUElJ9Z", "scope_permissions":["profile","https://www.googleapis.com/auth/plus.login","email"] } ] }