POST api/MpesaToken
Request Information
URI Parameters
None.
Body Parameters
Jsonparams| Name | Description | Type | Additional information |
|---|---|---|---|
| jsonstring | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"jsonstring": "sample string 1"
}
application/xml, text/xml
Sample:
<Jsonparams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MpesaSunny.Models"> <jsonstring>sample string 1</jsonstring> </Jsonparams>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TokenResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| access_token | string |
None. |
|
| expires_in | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"access_token": "sample string 1",
"expires_in": "sample string 2"
}
application/xml, text/xml
Sample:
<TokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MpesaSunny.Models"> <access_token>sample string 1</access_token> <expires_in>sample string 2</expires_in> </TokenResponse>