/// <summary> /// This object is a Syncrhonous wrapper around the AsyncEvernoteAuthorizer, /// which is turn simplifies the interface to AsyncOAuth when talking to Evernote, /// taking care of some of configuration parameters / parsing you normally have /// to deal with when working with the OAuth directly. /// /// It will wait until we have heard back from Evernote before finishing the request /// Use AsyncEvernoteAuthorizer if you want to remove this dependency /// </summary> /// <param name="evernoteUrl">The url of the Evernote Service to connection to e.g. https://sandbox.evernote.com for development</param> /// <param name="evernoteKey">Customer Key - what you provided evernote when creating API account e.g. "myappname"</param> /// <param name="evernoteSecret">Consumer Secret - what you evernote provided you e.g. "badb123b192192"</param> /// <param name="initComputeHash">By default OAuthUtility.ComputeHash is not populated. If you have set this elsewhere in your program, then set this to false</param> public EvernoteAuthorizer(string evernoteUrl, string evernoteKey, string evernoteSecret, bool initComputeHash = true) { AsyncEvernoteAuthorizer = new AsyncEvernoteAuthorizer(evernoteUrl, evernoteKey, evernoteSecret, initComputeHash); }
/// <summary> /// This object is a Syncrhonous wrapper around the AsyncEvernoteAuthorizer, /// which is turn simplifies the interface to AsyncOAuth when talking to Evernote, /// taking care of some of configuration parameters / parsing you normally have /// to deal with when working with the OAuth directly. /// /// It will wait until we have heard back from Evernote before finishing the request /// Use AsyncEvernoteAuthorizer if you want to remove this dependency /// </summary> /// <param name="evernoteUrl">The url of the Evernote Service to connection to e.g. https://sandbox.evernote.com for development</param> /// <param name="evernoteKey">Customer Key - what you provided evernote when creating API account e.g. "myappname"</param> /// <param name="evernoteSecret">Consumer Secret - what you evernote provided you e.g. "badb123b192192"</param> /// <param name="initComputeHash">By default OAuthUtility.ComputeHash is not populated. If you have set this elsewhere in your program, then set this to false</param> public EvernoteAuthorizer(string evernoteUrl, string evernoteKey, string evernoteSecret, bool initComputeHash = true) { AsyncEvernoteAuthorizer = new AsyncEvernoteAuthorizer(evernoteUrl, evernoteKey, evernoteSecret, initComputeHash); }