public CreateSessionTokenResponse GetCreateSessionResponse() { const string createSessionRequestUrl = "https://connect.gettyimages.com/v1/session/CreateSession"; var createSessionRequestBody = new CreateSessionRequestBody { SystemId = "systemId", SystemPassword = "******", UserName = "******", UserPassword = "******", }; var createSessionTokenRequest = new CreateSessionTokenRequest { RequestHeader = new RequestHeader(), CreateSessionRequestBody = createSessionRequestBody }; return MakeWebRequest(createSessionRequestUrl, createSessionTokenRequest); }
public CreateSessionTokenResponse GetCreateSessionResponse() { const string createSessionRequestUrl = "https://connect.gettyimages.com/v1/session/CreateSession"; var createSessionRequestBody = new CreateSessionRequestBody { SystemId = ConfigurationSettings.AppSettings["systemId"].ToString(), SystemPassword = ConfigurationSettings.AppSettings["syspassword"].ToString(), UserName = ConfigurationSettings.AppSettings["Username"].ToString(), UserPassword = ConfigurationSettings.AppSettings["Password"].ToString(), }; var createSessionTokenRequest = new CreateSessionTokenRequest { RequestHeader = new RequestHeader(), CreateSessionRequestBody = createSessionRequestBody }; return(MakeWebRequest(createSessionRequestUrl, createSessionTokenRequest)); }
public CreateSessionTokenResponse GetCreateSessionResponse() { const string createSessionRequestUrl = "https://connect.gettyimages.com/v1/session/CreateSession"; var createSessionRequestBody = new CreateSessionRequestBody { SystemId = "systemId", SystemPassword = "******", UserName = "******", UserPassword = "******", }; var createSessionTokenRequest = new CreateSessionTokenRequest { RequestHeader = new RequestHeader(), CreateSessionRequestBody = createSessionRequestBody }; return(MakeWebRequest(createSessionRequestUrl, createSessionTokenRequest)); }