Confirm subscription
This endpoint is deprecated. Please do not use it for new projects. The documentation remains here for legacy API consumers.
Confirming a subscription
Request with tokens
A PUT with the endpoint /jobabo/{aboId} is required to confirm a subscription.
1 |
curl -i -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X PUT "https://api.softgarden.io/api/rest/v2/frontend/jobabo/{aboId}" |
with TOKEN being either a client access token or a user access token. The {aboId} corresponds to subscription that is to be confirmed.
Confirming a subscription simply means that its status is set to ‘confirmed‘, regardless of the previous status value.
Request with basic authorization
As an alternative, you can use here the basic authorization method. Just write
1 |
curl -i -u "{clientId}:" -H "Content-Type: application/json" -X PUT "https://api.softgarden.io/api/rest/v2/frontend/jobabo/{aboId}" |
{clientId} is the ID for your application to develop given to you by softgarden. The colon seen in the example is obligatory.
Path parameters
Name | Description | Data Type |
---|---|---|
aboId | The subscription to confirm. | String |
Query parameters
– none –
Response values
Upon | Returned value | Description |
---|---|---|
success | boolean | ‘true‘ if unsubscription was successful, ‘false‘ otherwise e.g. if the ID was invalid |
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 |
true |