Download OpenAPI specification:Download
List subscriptions available for user-id
required | string or integer ID of user for which to return subscriptions. The special value |
curl \ https://api.scientiamobile.com/identity/v1/users/10/subscriptions \ -H 'Authorization: Bearer <token>' \ -H 'Content-Type: application/json'
[- {
- "id": 10,
- "payment_type": "FREE",
- "payment_plan": "WURFL_CLOUD_FREE",
- "date_started": "2012-03-07T09:15:10Z",
- "date_expiration": "2030-03-07T09:15:10Z",
- "status": "ACTIVE",
- "type": "cloud",
- "image_engine_tier_id": 2,
- "plan": "wurfl cloud lite"
}
]
List origins for a specific subscription_id
subscription_id required | integer <int> ID of subscription to return origins |
curl \ https://api.scientiamobile.com/imageengine/cdn/v1/subscriptions/12666/origins \ -H 'Authorization: Bearer <token>' \ -H 'Content-Type: application/json'
[- {
- "origin": "img.example.com",
- "is_origin_prefix": false,
- "in_use": true
}
]
Executes a purge operation
subscription_id required | integer <int> ID of subscription to return origins |
origin required | string |
pattern required | string |
{- "pattern": "/images/*.png"
}
{- "purge_id": "11a38b9a-b3da-360f-9353-a5a725514269"
}
List current purges for this subscription
subscription_id required | integer <int> ID of subscription to return origins |
curl -X GET \ https://api.scientiamobile.com/imageengine/cdn/v1/subscriptions/12666/purges \ -H 'Authorization: Bearer <token>' \ -H 'Content-Type: application/json'
{- "purge_id": "11a38b9a-b3da-360f-9353-a5a725514269",
- "pattern": "/images/*.png",
- "created": "2019-07-02T15:32:17Z",
- "status": "completed"
}
Status of one purge request
subscription_id required | integer <int> ID of subscription to return origins |
purge_id required | integer <int> ID of a purge request to return status |
curl -X GET \ https://api.scientiamobile.com/imageengine/cdn/v1/subscriptions/12666/purges/11a38b9a-b3da-360f-9353-a5a725514269 \ -H 'Authorization: Bearer <token>' \ -H 'Content-Type: application/json'
{- "purge_id": "11a38b9a-b3da-360f-9353-a5a725514269",
- "pattern": "/images/*.png",
- "created": "2019-07-02T15:32:17Z",
- "status": "completed"
}