Import third-party account data
This endpoint is deprecated. Please do not use it for new projects. The documentation remains here for legacy API consumers.
When you want to allow an applicant to import data via a thirdparty account like xing, use the /thirdparties/import endpoint. It does basically the same as /thirdparties/login.
Request with tokens
By sending the following GET-request, you can retrieve a list of thirdparty providers a user may import data from.
1 2 |
curl -i -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X GET "https://api.softgarden.io/api/rest/v2/frontend/thirdparties/import" |
with TOKEN eihter being a client access token or a user access token. It is used to determine the validity of this request.
Request with basic authorization
As an alternative, you can use here the basic authorization method. Just write
1 2 |
curl -i -u "{clientId}:" -H "Content-Type: application/json" -X GET "https://api.softgarden.io/api/rest/v2/frontend/thirdparties/import" |
{clientId} is the ID for your application to develop given to you by softgarden. The colon seen in the example is obligatory.
Path parameters
– none –
Query parameters
– none –
Response values
Upon | Returned value | Description |
---|---|---|
success | JSON-encoded List<ThirdpartyService> | For more information see the according page. |
failure | 500 – INTERNAL SERVER ERROR | When an error appears while processing your request. |
authorization error | 401 / 403 | See here for details. |
Example return value
1 2 3 4 5 6 7 8 9 10 |
[ { "id": "XING", "logoUrl": "//static.softgarden.de/images/social/xing_button.png", "shareButtonHeight": 20, "shareButtonWidth": 55, "popupHeight": 640, "popupWidth": 640 } ] |