User Approved Apps
/userapprovedapps
The user can approve certain apps to give them temporary access to his data through OAuth2.
List Apps
URL: /userapprovedapps
Method: GET
Protocol: HTTP, HTTPS
Returns:
- 200 (OK) + a collection of apps
Example:
$ curl -X GET http://api.giscloud.com/1/userapprovedapps <?xml version="1.0"?> <userapprovedapps total="2" page="1"> <userapprovedapp> <id>1</id> <uid>1</uid> <client_id>2</client_id> </userapprovedapp> <userapprovedapp> <id>2</id> <uid>1</uid> <client_id>4</client_id> </userapprovedapp> </userapprovedapps>
Create App
URL: /userapprovedapps
Method: POST
Protocol: HTTPS
Returns one of:
- 201 (Created) + a URL to the newly created resource in the Location header of the response
- 409 (Conflict) if the OAuth client in question was already approved
Example:
curl -X POST https://api.giscloud.com/1/userapprovedapps
Delete App
URL: /userapprovedapps/{id}
Method: DELETE
Protocol: HTTPS
Parameters:
- id – app to be deleted
Returns one of:
- 204 (No Content) if successful
- 404 (Not Found) if the resource wasn’t found