/// <summary> /// Initializes a new OAuth client default properties. /// </summary> public VimeoOAuth2Client() { Channels = new VimeoChannelsRawEndpoint(this); Me = new VimeoMeRawEndpoint(this); Users = new VimeoUsersRawEndpoint(this); Videos = new VimeoVideosRawEndpoint(this); }
/// <summary> /// Initializes a new instance of the <see cref="VimeoOAuthClient"/> class. /// </summary> /// <param name="consumerKey">The comsumer key of your application.</param> /// <param name="consumerSecret">The consumer secret of your application.</param> /// <param name="token">The access token of the user.</param> /// <param name="tokenSecret">The access token secret of the user.</param> /// <param name="callback">The callback URI used for authentication.</param> public VimeoOAuthClient(string consumerKey, string consumerSecret, string token, string tokenSecret, string callback) { // Common properties ConsumerKey = consumerKey; ConsumerSecret = consumerSecret; Token = token; TokenSecret = tokenSecret; Callback = callback; // Specific to the Vimeo API RequestTokenUrl = "https://vimeo.com/oauth/request_token"; AuthorizeUrl = "https://vimeo.com/oauth/authorize"; AccessTokenUrl = "https://vimeo.com/oauth/access_token"; Channels = new VimeoChannelsRawEndpoint(this); Me = new VimeoMeRawEndpoint(this); Users = new VimeoUsersRawEndpoint(this); Videos = new VimeoVideosRawEndpoint(this); }