/// <summary> /// Relogin with an existing access token. /// </summary> /// <param name="accessToken">An access token that you have already acquired.</param> /// <param name="cid">Your Client/Application ID</param> /// <param name="secret">Your Client/Application Secret</param> /// <param name="apiRoot">API Endpoint (optional)</param> public static VimeoClient ReAuthorize( string accessToken, string cid, string secret, string apiRoot = "https://api.vimeo.com") { VimeoClient vc = new VimeoClient(); vc.clientId = cid; vc.secret = secret; vc.AccessToken = accessToken; vc.apiRoot = apiRoot; vc.User = vc.Request("/me", null, "GET"); return(vc); }
/// <summary> /// Relogin with an existing access token. /// </summary> /// <param name="accessToken">An access token that you have already acquired.</param> /// <param name="cid">Your Client/Application ID</param> /// <param name="secret">Your Client/Application Secret</param> /// <param name="apiRoot">API Endpoint (optional)</param> public static VimeoClient ReAuthorize( string accessToken, string cid, string secret, string apiRoot = "https://api.vimeo.com") { VimeoClient vc = new VimeoClient(); vc.clientId = cid; vc.secret = secret; vc.AccessToken = accessToken; vc.apiRoot = apiRoot; vc.User = vc.Request("/me", null, "GET"); return vc; }