Ejemplo n.º 1
0
        /// <summary>
        /// Construct the Buffer service.
        /// </summary>
        /// <param name="accessToken">OAuth access token for this user. <see href="https://buffer.com/developers/api/oauth">Buffer API</see>
        /// to see how to retrieve it from Buffer.</param>
        public BufferService(string accessToken)
            : base(new HttpService())
        {
            Authority = "https://api.bufferapp.com/";
            BasePath  = "1/";

            PersistentUrlParameters.Add("access_token", accessToken);
        }
Ejemplo n.º 2
0
        public TwitlongerService(string app, string key, string user)
            : base(new HttpService())
        {
            appName  = app;
            apiKey   = key;
            username = user;

            Authority  = "http://www.twitlonger.com/";
            BasePath   = "";
            serializer = new XmlSerializer(typeof(TwitlongerPost));

            PersistentUrlParameters.Add("application", appName);
            PersistentUrlParameters.Add("api_key", apiKey);
            PersistentUrlParameters.Add("username", username);
        }