{{ __('locale.developers.api_endpoint') }}
{{ route('api_http.profile.me') }}
{{ __('locale.developers.parameter') }} | {{ __('locale.labels.required') }} | {{ __('locale.labels.description') }} |
---|---|---|
api_token |
{{ __('locale.labels.yes') }}
|
API Token From Developers option. Get API Token |
Accept |
{{ __('locale.labels.yes') }}
|
Set to application/json |
Content-Type |
{{ __('locale.labels.yes') }}
|
Set to application/json |
{{ __('locale.developers.api_endpoint') }}
{{ route('api_http.profile.balance') }}
curl -X GET {{ route('api_http.profile.balance') }} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"api_token":"{{ Auth::user()->api_token }}"}'
Returns a contact object if the request was successful.
{
"status": "success",
"data": "sms unit with all details",
}
If the request failed, an error object will be returned.
{
"status": "error",
"message" : "A human-readable description of the error."
}
{{ __('locale.developers.api_endpoint') }}
{{ route('api_http.profile.me') }}
curl -X GET {{ route('api_http.profile.me') }} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"api_token":"{{ Auth::user()->api_token }}"}'
Returns a contact object if the request was successful.
{
"status": "success",
"data": "profile data with all details",
}
If the request failed, an error object will be returned.
{
"status": "error",
"message" : "A human-readable description of the error."
}