{{ __('radio.menu_item_5_sub_5') }}
{{ __('radio.api_token_limits_title') }}
{{ __('radio.api_daily_limit') }}
@php $percentage = ($userLogged->limit_used / $userLogged->limit_total) * 100; @endphp{{ $userLogged->limit_used }} / {{ $userLogged->limit_total }}
{{ round($percentage) }}%
{{ __('radio.api_docs_title') }}
{{ __('radio.api_tab_auth') }}
{{ __('radio.api_auth_intro') }}
| {{ __('radio.api_table_property') }} | {{ __('radio.api_table_description') }} | {{ __('radio.api_table_type') }} | {{ __('radio.api_table_size') }} | {{ __('radio.api_table_required') }} |
|---|---|---|---|---|
| Authorization | Bearer [AuthToken] | {{ __('radio.api_type_text') }} | 43 | {{ __('site.action_yes') }} |
| Accept | application/json | {{ __('radio.api_type_text') }} | 43 | {{ __('site.action_yes') }} |
{!! __('radio.api_auth_header_note') !!}
{ "Bearer": "1|jhdsAUEdsk...xD0i0jqcw" }
{!! __('radio.api_response_json_note') !!}
{
"status": "success",
...
}
{{ __('radio.api_data_title') }}
{{ __('radio.api_data_intro') }}
{!! __('radio.api_response_json_note') !!}
{
"status": "success",
"plan": {
"radio_name": "Nome da rádio",
"listeners": 1000,
"bitrate": 128
},
"listeners": {
"current": "25",
"peak": "200"
},
"onair_data": {
"current_music": "Áudio atual",
"next_music": "Próximo áudio",
"stream_data": {
"codec": "aac",
"bitrate": "128"
}
}
}
{{ __('radio.api_response_title') }}
| {{ __('radio.api_table_property') }} | {{ __('radio.api_table_description') }} | {{ __('radio.api_table_type') }} | {{ __('radio.api_table_size') }} | {{ __('radio.api_table_format') }} |
|---|---|---|---|---|
| status | {{ __('radio.api_field_status') }} | {{ __('radio.api_type_text') }} | 36 | success | error |
| plan.radio_name | {{ __('radio.api_field_radio_name') }} | {{ __('radio.api_type_text') }} | 255 | Rádio Brascast |
| plan.listeners | {{ __('radio.api_field_plan_listeners') }} | {{ __('radio.api_type_number') }} | 25 | 1000 |
| plan.bitrate | {{ __('radio.api_field_plan_bitrate') }} | {{ __('radio.api_type_number') }} | 40 | 128 |
| listeners.current | {{ __('radio.api_field_listeners_current') }} | {{ __('radio.api_type_number') }} | 40 | 25 |
| listeners.peak | {{ __('radio.api_field_listeners_peak') }} | {{ __('radio.api_type_number') }} | 40 | 200 |
| onair_data.current_music | {{ __('radio.api_field_current_music') }} | {{ __('radio.api_type_text') }} | 255 | {{ __('radio.api_format_audio_name') }} |
| onair_data.next_music | {{ __('radio.api_field_next_music') }} | {{ __('radio.api_type_text') }} | 255 | {{ __('radio.api_format_audio_name') }} |
| onair_data.stream_data.codec | {{ __('radio.api_field_codec') }} | {{ __('radio.api_type_text') }} | 3 | aac |
| onair_data.stream_data.codec | {{ __('radio.api_field_bitrate') }} | {{ __('radio.api_type_number') }} | 3 | 128 |
*{!! __('radio.api_limit_warning') !!}
{{ __('radio.api_errors_title') }}
{{ __('radio.api_errors_intro') }}
{{ __('radio.api_errors_note') }}
| HTTP STATUS CODE | {{ __('radio.api_table_description') }} |
|---|---|
| 200 | {{ __('radio.api_error_200') }} |
| 402 | {{ __('radio.api_error_402') }} |
| 403 | {{ __('radio.api_error_403') }} |
{{ __('radio.api_faq_title') }}
{{ __('radio.api_faq_unavailable') }}