コード例 #1
0
        /// <summary>
        /// Initialize a new service instance from the specified OAuth client.
        /// </summary>
        /// <param name="client">The OAuth client.</param>
        public static PinterestService CreateFromOAuthClient(PinterestOAuthClient client) {

            // This should never be null
            if (client == null) throw new ArgumentNullException("client");

            // Initialize the service
            return new PinterestService(client);

        }
コード例 #2
0
 private PinterestService(PinterestOAuthClient client) {
     Client = client;
     Boards = new PinterestBoardsEndpoint(this);
     Pins = new PinterestPinsEndpoint(this);
     Users = new PinterestUsersEndpoint(this);
 }
コード例 #3
0
 internal PinterestPinsRawEndpoint(PinterestOAuthClient client) {
     Client = client;
 }