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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
        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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
Beispiel #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());
        }
        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());
        }
Beispiel #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());
        }