// token received from CreateSession API call
        public RenewSessionResponse RenewSecureToken(string secureToken)
        {
            const string renewSessionRequestUrl = "https://connect.gettyimages.com/v1/session/RenewSession";
            var sessionToken = new RenewSessionRequestBody
            {
                SystemId = "systemId",
                SystemPassword = "******",
            };

            var renewSessionRequest = new RenewSessionRequest
            {
                RequestHeader = new RequestHeader { Token = secureToken },
                RenewSessionRequestBody = sessionToken
            };

            return MakeWebRequest(renewSessionRequestUrl, renewSessionRequest);
        }
Ejemplo n.º 2
0
        // token received from CreateSession API call
        public RenewSessionResponse RenewSecureToken(string secureToken)
        {
            const string renewSessionRequestUrl = "https://connect.gettyimages.com/v1/session/RenewSession";
            var          sessionToken           = new RenewSessionRequestBody
            {
                SystemId       = "systemId",
                SystemPassword = "******",
            };

            var renewSessionRequest = new RenewSessionRequest
            {
                RequestHeader = new RequestHeader {
                    Token = secureToken
                },
                RenewSessionRequestBody = sessionToken
            };

            return(MakeWebRequest(renewSessionRequestUrl, renewSessionRequest));
        }