POST api/MetroMobile/V2/SubscriptionActivation

SMS Aktivasyon İşlemi

Request Information

URI Parameters

None.

Body Parameters

StatusId:1 Başarılı, StatusId:2,3,4 Hata

SMSActivationRequest
NameDescriptionTypeAdditional information
aboneEposta

string

None.

aktivasyonKodu

string

None.

Request Formats

application/json, text/json

Sample:
{
  "aboneEposta": "sample string 1",
  "aktivasyonKodu": "sample string 2"
}

application/xml, text/xml

Sample:
<SMSActivationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.Models">
  <aboneEposta>sample string 1</aboneEposta>
  <aktivasyonKodu>sample string 2</aktivasyonKodu>
</SMSActivationRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SMSActivationRequest'.

Response Information

Resource Description

ResultOfSubscribeResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

Error

None.

Data

Collection of SubscribeResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "Id": 1,
    "Title": "sample string 2",
    "Message": "sample string 3",
    "Trace": "sample string 4",
    "HelpLink": "sample string 5",
    "Source": "sample string 6"
  },
  "Data": [
    {
      "StatusId": 1,
      "Message": "sample string 2"
    },
    {
      "StatusId": 1,
      "Message": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<ResultOfSubscribeResponseuns9C1Um xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.Models">
  <Data>
    <SubscribeResponse>
      <Message>sample string 2</Message>
      <StatusId>1</StatusId>
    </SubscribeResponse>
    <SubscribeResponse>
      <Message>sample string 2</Message>
      <StatusId>1</StatusId>
    </SubscribeResponse>
  </Data>
  <Error>
    <HelpLink>sample string 5</HelpLink>
    <Id>1</Id>
    <Message>sample string 3</Message>
    <Source>sample string 6</Source>
    <Title>sample string 2</Title>
    <Trace>sample string 4</Trace>
  </Error>
  <Success>true</Success>
</ResultOfSubscribeResponseuns9C1Um>