{{ __('locale.developers.api_endpoint') }}
{{ route('api.profile.me') }}
{{ __('locale.developers.parameter') }} | {{ __('locale.labels.required') }} | {{ __('locale.labels.description') }} |
---|---|---|
Authorization |
{{ __('locale.labels.yes') }}
|
When calling our API, send your api token with the authentication type set as Bearer (Example: Authorization: Bearer {api_token} ) |
Accept |
{{ __('locale.labels.yes') }}
|
Set to application/json |
{{ __('locale.developers.api_endpoint') }}
{{ route('api.profile.balance') }}
curl -X GET {{ route('api.profile.balance') }} \
-H 'Authorization: Bearer {{ Auth::user()->api_token }}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
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.profile.me') }}
curl -X GET {{ route('api.profile.me') }} \
-H 'Authorization: Bearer {{ Auth::user()->api_token }}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
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."
}