Esri's Geotrigger Service is replacing Geoloqi! Learn More | FAQ

layer/unsubscribe/:id

Contents

URL

https://api.geoloqi.com/1/layer/unsubscribe/:layer_id

Description

Unsubscribe the user from the specified layer.

Supported Request Methods

POST

Parameters

  • user_id Optional
    If no user ID is provided, then the authenticating user will subscribe to the layer. If you provide an application access token, you can get your application to subscribe users it has created to the layer.

Example Request

Subscribe the current user to the layer:

curl -s -H "Content-Type: application/json" \
     -H "Authorization: OAuth YOUR_USER_ACCESS_TOKEN" \
     -X POST https://api.geoloqi.com/1/layer/unsubscribe/12345
curl -s -H "Content-Type: application/json" \
     -H "Authorization: OAuth YOUR_APPLICATION_ACCESS_TOKEN" \
     -X POST https://api.geoloqi.com/1/layer/unsubscribe/12345?user_id=54321

Example Response

{
  "subscribed": "0"
}