Beispiel #1
0
        public async Task Oauth_RequestToken_OK()
        {
            var pocket = new PocketOauth("consumer_key", "rediret_uri");

            var token = await pocket.GetRequestTokenAsync();

            Assert.AreEqual(30, token.Length);
        }
Beispiel #2
0
        public MainPage()
        {
            InitializeComponent();

            // For this example, I implement the Uri association feature for WP8
            // Refer http://www.developer.nokia.com/Community/Wiki/URI_associations_for_Windows_Phone_8
            _pocketOauth = new PocketOauth("13800-484706a3a08844c6ab34ccf6", "getpocket:MainPage");
        }
Beispiel #3
0
        public async Task Oauth_AccessToken_OK()
        {
            var          pocket       = new PocketOauth("consumer_key", "rediret_uri");
            const string requestToken = "request_token";

            var token = await pocket.GetAccessTokenAsync(requestToken);

            Assert.IsNotNull(token);
        }