POST api/subscribe
Request Information
URI Parameters
None.
Body Parameters
SubscriptionObject| Name | Description | Type | Additional information |
|---|---|---|---|
| token | string |
None. |
|
| subscriptionIds | Collection of integer |
None. |
|
| teacherEmail | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"token": "sample string 1",
"subscriptionIds": [
1,
2
],
"teacherEmail": "sample string 2"
}
application/xml, text/xml
Sample:
<PurchaseController.SubscriptionObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OHS.TLMClassroomResponder.WebAPI.Controllers">
<subscriptionIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</subscriptionIds>
<teacherEmail>sample string 2</teacherEmail>
<token>sample string 1</token>
</PurchaseController.SubscriptionObject>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.