Exemplo n.º 1
0
        public string GetRendition(OAuthToken theToken, string strAccountID, string strVideoID, string strAssetID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/videos/{2}/assets/renditions/{3}", BaseURL, strAccountID, strVideoID, strAssetID);
            myCall.Token      = theToken.Token;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
Exemplo n.º 2
0
        public string DeleteBeaconSet(string strAPIKey, string strBeaconSetID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/ssai/beaconset/{1}", BaseURL, strBeaconSetID);
            myCall.APIKey     = strAPIKey;
            myCall.Method     = Method.DELETE;

            return(myCall.Execute());
        }
Exemplo n.º 3
0
        public string GetAdConfiguration(string strAPIKey, string strAppID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/ssai/application/{1}", BaseURL, strAppID);
            myCall.APIKey     = strAPIKey;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
Exemplo n.º 4
0
        public string GetBeaconSets(string strAPIKey, string strAccountID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/ssai/beaconsets/{1}", BaseURL, strAccountID);
            myCall.APIKey     = strAPIKey;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
Exemplo n.º 5
0
        public string GetBeaconSetsForUser(string strAPIKey)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/ssai/beaconsets", BaseURL);
            myCall.APIKey     = strAPIKey;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
Exemplo n.º 6
0
        public string GetSlateMediaSourceAssets(string strAPIKey, string strAccountID = "")
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/ssai/slates/{1}", BaseURL, strAccountID);
            myCall.APIKey     = strAPIKey;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
Exemplo n.º 7
0
        public string DeleteSlateMediaSourceAsset(string strAPIKey, string strMSAID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/ssai/slates/{1}", BaseURL, strMSAID);
            myCall.APIKey     = strAPIKey;
            myCall.Method     = Method.DELETE;

            return(myCall.Execute());
        }
Exemplo n.º 8
0
        public string ListChannelAffiliates(OAuthToken theToken, string strAccountID, string strChannelName)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/channels/{2}/members", BaseURL, strAccountID, strChannelName);
            myCall.Token      = theToken.Token;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
        public string GetSubscription(OAuthToken theToken, string strAccountID, string strSubscriptionID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/subscriptions/{2}", BaseURL, strAccountID, strSubscriptionID);
            myCall.Token      = theToken.Token;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
Exemplo n.º 10
0
        public string StopLiveJob(string strAPIKey, string strLiveJobID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/jobs/{1}/cancel", BaseURL, strLiveJobID);
            myCall.APIKey     = strAPIKey;
            myCall.Method     = Method.PUT;

            return(myCall.Execute());
        }
Exemplo n.º 11
0
        public string GetLeads(OAuthToken theToken, string strAccountID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/leads", BaseURL, strAccountID);
            myCall.Token      = theToken.Token;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
Exemplo n.º 12
0
        public string GetContract(OAuthToken theToken, string strAccountID, string strMasterAccountID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/contracts/{2}", BaseURL, strAccountID, strMasterAccountID);
            myCall.Token      = theToken.Token;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
Exemplo n.º 13
0
        public string GetLiveJobDetails(string strAPIKey, string strLiveJobID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/jobs/{1}", BaseURL, strLiveJobID);
            myCall.APIKey     = strAPIKey;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
Exemplo n.º 14
0
        public string ActivateSEPStream(string strAPIKey, string strLiveJobID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/jobs/{1}/activate", BaseURL, strLiveJobID);
            myCall.APIKey     = strAPIKey;
            myCall.Method     = Method.PUT;

            return(myCall.Execute());
        }
Exemplo n.º 15
0
        public string GetLiveJobs(string strAPIKey)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/ui/jobs/live", BaseURL);
            myCall.APIKey     = strAPIKey;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
Exemplo n.º 16
0
        public string GetSinglePlayer(OAuthToken theToken, string strAccountID, string strPlayerID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/players/{2}", BaseURL, strAccountID, strPlayerID);
            myCall.Token      = theToken.Token;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
Exemplo n.º 17
0
        public string GetStatusOfIngestJob(OAuthToken theToken, string strAccountID, string strVideoID, string strJobID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/videos/{2}/ingest_jobs/{3}", BaseURL, strAccountID, strVideoID, strJobID);
            myCall.Token      = theToken.Token;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
Exemplo n.º 18
0
        public string DeleteVideo(OAuthToken theToken, string strAccountID, string strVideoID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/videos/{2}", BaseURL, strAccountID, strVideoID);
            myCall.Token      = theToken.Token;
            myCall.Method     = Method.DELETE;

            return(myCall.Execute());
        }
Exemplo n.º 19
0
        public string RemoveAffiliate(OAuthToken theToken, string strAccountID, string strChannelName, string strAffiliateAccountID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/channels/{2}/members/{3}", BaseURL, strAccountID, strChannelName, strAffiliateAccountID);
            myCall.Token      = theToken.Token;
            myCall.Method     = Method.DELETE;

            return(myCall.Execute());
        }
Exemplo n.º 20
0
        public string GetDigitalMasterInfo(OAuthToken theToken, string strAccountID, string strVideoID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/videos/{2}/digital_master", BaseURL, strAccountID, strVideoID);
            myCall.Token      = theToken.Token;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
Exemplo n.º 21
0
        public string RemoveVideoFromAllPlaylists(OAuthToken theToken, string strAccountID, string strVideoID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/videos/{2}/references", BaseURL, strAccountID, strVideoID);
            myCall.Token      = theToken.Token;
            myCall.Method     = Method.DELETE;

            return(myCall.Execute());
        }
Exemplo n.º 22
0
        public string GetVideos(OAuthToken theToken, string strAccountID, string strQueryString = "")
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/videos?{2}", BaseURL, strAccountID, strQueryString);
            myCall.Token      = theToken.Token;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
Exemplo n.º 23
0
        public string GetVideoImages(OAuthToken theToken, string strAccountID, string strVideoID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/videos/{2}/images", BaseURL, strAccountID, strVideoID);
            myCall.Token      = theToken.Token;
            myCall.Method     = Method.GET;

            return(myCall.Execute());
        }
Exemplo n.º 24
0
        /// <summary>
        /// Executes the API query call.
        /// </summary>
        /// <returns>The API response as JSON.</returns>
        /// <param name="strAPIQuery">String API Query.</param>
        private string ExecuteCall(string strAPIQuery)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = strAPIQuery;
            myCall.Method     = Method.GET;
            myCall.Token      = Token.Token;

            return(myCall.Execute());
        }
Exemplo n.º 25
0
        public string RemoveVideoFromFolder(OAuthToken theToken, string strAccountID, string strFolderID, string strVideoID)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/folders/{2}/videos/{3}", BaseURL, strAccountID, strFolderID, strVideoID);
            myCall.Method     = Method.DELETE;
            myCall.Token      = theToken.Token;

            return(myCall.Execute());
        }
Exemplo n.º 26
0
        public string UpdateVideo(OAuthToken theToken, string strAccountID, string strVideoID, string strJsonBody)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/videos/{2}", BaseURL, strAccountID, strVideoID);
            myCall.Token      = theToken.Token;
            myCall.JSONBody   = strJsonBody;
            myCall.Method     = Method.PATCH;

            return(myCall.Execute());
        }
Exemplo n.º 27
0
        public string CreateLiveJob(string strAPIKey, string strJsonBody)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/jobs", BaseURL);
            myCall.APIKey     = strAPIKey;
            myCall.JSONBody   = strJsonBody;
            myCall.Method     = Method.POST;

            return(myCall.Execute());
        }
Exemplo n.º 28
0
        public string UpdateFolderName(OAuthToken theToken, string strAccountID, string strFolderID, string strJSONBody)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/folders/{2}", BaseURL, strAccountID, strFolderID);
            myCall.Method     = Method.PATCH;
            myCall.Token      = theToken.Token;
            myCall.JSONBody   = strJSONBody;

            return(myCall.Execute());
        }
Exemplo n.º 29
0
        public string CreatePlayer(OAuthToken theToken, string strAccountID, string strJSONBody)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/{1}/players", BaseURL, strAccountID);
            myCall.Method     = Method.POST;
            myCall.Token      = theToken.Token;
            myCall.JSONBody   = strJSONBody;

            return(myCall.Execute());
        }
Exemplo n.º 30
0
        public string InsertID3TimedMetadata(string strAPIKey, string strLiveJobID, string strJsonBody)
        {
            RestAPICall myCall = new RestAPICall();

            myCall.APICallURL = String.Format("{0}/jobs/{1}/id3tag", BaseURL, strLiveJobID);
            myCall.APIKey     = strAPIKey;
            myCall.JSONBody   = strJsonBody;
            myCall.Method     = Method.POST;

            return(myCall.Execute());
        }