Returns a share
v1
get
/1/vod/channel/{channel}/share/{share}
Returns a share.
channel
requiredstring
Examples:example
share
requiredstring
Examples:example
Response Body
application/json
resultstring
Examples:success
dataobject
Share
Example request
<?php
use GuzzleHttp\Client;
$client = new Client();
$headers = [
'Authorization' => 'Bearer YOUR-TOKEN-HERE',
'Content-Type' => 'application/json'
];
$request = new Request('GET', 'https://api.infomaniak.com/1/vod/channel/{channel}/share/{share}?$share, new OptionsHttp($request=example', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
Example response
application/json
{"result":"success","data":{"id":"1jhvl2uqa5v8a","target_type":"maria","target_id":"maria","comment":"maria","timestamp":"maria","validity":42,"created_at":"2021-09-15T14:23:41+00:00","updated_at":"2021-09-15T14:23:41+00:00","deleted_at":"2021-09-15T14:23:41+00:00","links":["example"],"player":{"id":"1jhvl2uqa5v8a","default":true,"name":"maria","description":"maria","show_controls":true,"show_progression":true,"show_audio":true,"show_duration":true,"show_fullscreen":true,"show_default_logo":true,"show_speed":true,"default_speed":"1","is360":42,"encoding_change_enabled":42,"encoding_limit":42,"chromecast":true,"force_media_ratio":true,"auto_start":true,"audio_volume":42,"show_replay":true,"show_loop":true,"show_related":42,"play_related":42,"related_type":"SIMILAR_TAGS","width":42,"height":42,"controlbar_color":"#FF0077","control_color":"#FF0077","control_active_color":"#FF0077","logo_image":{"mimetype":"image/png","encoding":"encoding"},"logo_anchor":"TOP_LEFT","logo_margin_vertical":42,"logo_margin_horizontal":42,"logo_percentage":42,"show_media_info":true,"show_media_thumbnail":true,"media_thumbnail_anchor":"TOP","auto_hide_controls":true,"show_viewers":true,"show_viewers_after":42,"show_viewers_only_after":true,"time_before_hide_cb":42,"enable_facebook":true,"facebook_back_link":"maria","facebook_player_embed":true,"enable_twitter":true,"twitter_via":"maria","twitter_back_link":"maria","twitter_related":"example","enable_embed_code":true,"preload_image":{"mimetype":"image/png","encoding":"encoding"},"interrupt_image":{"mimetype":"image/png","encoding":"encoding"},"geoip_image":{"mimetype":"image/png","encoding":"encoding"},"restrict_image":{"mimetype":"image/png","encoding":"encoding"},"created_at":"2021-09-15T14:23:41+00:00","updated_at":"2021-09-15T14:23:41+00:00","deleted_at":"2021-09-15T14:23:41+00:00","is_channel_default":true,"ads":[{"id":"1jhvl2uqa5v8a","url":"https://infomaniak.com","mimetype":"maria","href":"maria","type":"PRE_ROLL","offset":"maria","tracking_id":"maria"}],"owned":true},"manifests":"maria","encoding":[{"id":"1jhvl2uqa5v8a","container":"FLV","name":"maria","copy":true,"video_codec":"H264","video_aspect":"LETTERBOX","video_fps":"example","audio_codec":"AAC","audio_channel":"MONO_1_0","created_at":"2021-09-15T14:23:41+00:00","updated_at":"2021-09-15T14:23:41+00:00","deleted_at":"2021-09-15T14:23:41+00:00","owned":true,"preset":[{"id":"1jhvl2uqa5v8a","name":"maria","type":"PLAYBACK","deleted_at":"2021-09-15T14:23:41+00:00","template":{"container":2,"audio_codec":1,"audio_channel":2,"streams":[{"audio_bitrate":64000,"audio_sampling":48000}]}}],"streams":[{"id":"1jhvl2uqa5v8a","video_bitrate":42,"video_width":42,"video_height":42,"audio_bitrate":42,"audio_sampling":42,"created_at":"2021-09-15T14:23:41+00:00","updated_at":"2021-09-15T14:23:41+00:00","deleted_at":"2021-09-15T14:23:41+00:00"}]}],"valid_until":"Carbon"}}