Getting started
Structure of the code
One of the ideas behind Skybrud.Social is that the implementation for a given service/API consists of two parts - a client part that quickly described is responsible for making the actual requests to the API and handling the necessary authentication, while a service part is responsible for parsing and handling the responses for the client in a manner that makes it easier for you to use.
As an example, the Instagram implementation has a class named InstagramService
, which will be your entry point for communicating with the Instagram API. The InstagramService
class will internally use the InstagramOAuthClient
class for making requests to the API.
The service is typically not a 1:1 implementation of the API, so if there is something I haven't implemented, you can also use the InstagramOAuthClient
class directly. The InstagramOAuthClient
class is also used for authentication - eg. obtaining an access token on behalf of your users.
Both the client and service parts are divided into multiple endpoints - eg. for Instagram, the InstagramService
class will have a Users endpoint of the type InstagramUsersEndpoint
, while the InstagramOAuthClient
similarly will have a Users endpoint of the type InstagramUsersRawEndpoint
.