This wrapper is licensed under creative commons share-alike, see license.txt. These options would be useful if you were using the Api in your own Web Server, for instance. You can provide an alternative by providing a WaitForRedirect async function. The default implementation provides an extremely dumb web server to listed on the redirect url port, and collect the code= parameter from the request. Once authorisation is complete, the OAuth2 process will redirect the browser to the redirect url you provide in the settings. You can provide an alternative action to open a browser, or otherwise call the 37signals page to ask for authorisation. You do not have to use the provided Settings class, provided you have a class that implements ISettings.Īs part of the OAuth2 process, the default implementation starts a browser to obtain authorisation. In order to run the Unit Tests provided, you must provide additional data in your ISettings object - see the Settings object in UnitTest1.cs. ![]() On a Windows 10 machine, LocalApplicationData is C:\Users\\AppData\Local, on Linux it is ~user/.local/share. This provides a static Load method, reads the settings from LocalApplicationData/BaseCampApi/Settings.json. A Settings class which imnplements this interface is provided, to save you work. ![]() This information has to be provided in an object that implements the ISettings interface, which is then used to create a BaseCampApi instance. For simple use, provide something like (choose another port number if you like). When registering, you have to provide a redirect uri for the OAuth2 authorisation process. This returns a Client Id and Client Secret. In order to use the Basecamp API you need to register your application at (/integrations). There is a test project (for net core only) which also demonstrates usage. NET Standard, so can be used with any version of. ![]() It is provided with a Visual Studio 2019 build solution for. This is a C# wrapper to (most of) the Basecamp 3 API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |