signpost

Quickbooks Online filtering with Signpost returns 401 error

痴心易碎 提交于 2019-12-08 12:15:46
问题 I was able to get Signpost work with QuickBooks Online using HttpPost. However when I tried querying with filters, I got 401 error every time. After contacting support, I was informed that this is a known bug. They pointed me to an example in C#. I am using Signpost oauth library in Java. The C# example doesn't make sense to me since I don't have those functions available in Signpost. Also I don't understand what exactly I need to do. One side note: I had to use HttpClient for this content

How to send an image to a Javascript client using JSON from a Java server

夙愿已清 提交于 2019-12-06 11:21:27
I am working on Google Contacts API and I received all data and sending as string to JSON (javascript) but when I get an image from contacts I can receive image. How can I send it to JSON? How can send the image file to a URL? (Can I use signpost?) if (photoLink.getEtag() != null) { GDataRequest request = myService.createLinkQueryRequest(photoLink); request.execute(); // No Authentication header information InputStream stream = request.getResponseStream(); Image image= ImageIO.read(stream); } If you're trying to send the actual image encoded as data using JSON, you can just send an HTML img

Authorization error with jTwitter for android

眉间皱痕 提交于 2019-12-04 06:32:25
问题 I am using jTwitter library in my android application. Till day before yesterday everything was working fine. But today am getting exception "Service provider responded in error : 301". Kindly help me. Here is ther stack trace : 02-21 21:07:27.258: E/AndroidRuntime(4013): FATAL EXCEPTION: AsyncTask #1 02-21 21:07:27.258: E/AndroidRuntime(4013): java.lang.RuntimeException: An error occured while executing doInBackground() 02-21 21:07:27.258: E/AndroidRuntime(4013): at android.os.AsyncTask$3

Could not find class oauth.signpost.commonshttp.CommonsHttpOAuthConsumer

天涯浪子 提交于 2019-12-03 23:01:42
问题 I had to format and start over yesterday, and I'm trying to get my project up and running again. I use the signpost library for OAuth authentication. I've imported my project and Eclipse gives me no errors in the text editor. However, when I run my app and hit the oauth code, my app bombs with the following error: 04-25 15:07:04.485: E/dalvikvm(344): Could not find class 'oauth.signpost.commonshttp.CommonsHttpOAuthConsumer', referenced from method com.myapp.app.ws.WebService.addHeaders The

Android Tumblr Oauth-signpost 401

我怕爱的太早我们不能终老 提交于 2019-12-03 15:48:34
Okay, so, I am making a Tumblr client for Android, I've been trying and failing to get OAuth working for about a week now. Here's how its going: User fires up the app. Main activity's onCreate does this: settings = getSharedPreferences(PREFS_NAME, 0); authToken=settings.getString("OauthToken", "none"); authTokenSecret=settings.getString("OauthSecret", "none"); if(authToken=="none" || authTokenSecret=="none"){ Intent i = new Intent(getApplicationContext(),Authentication.class); startActivity(i); } this launches an authentication activity which contains a WebView. That activity successfully gets

Authorization error with jTwitter for android

冷暖自知 提交于 2019-12-02 07:38:31
I am using jTwitter library in my android application. Till day before yesterday everything was working fine. But today am getting exception "Service provider responded in error : 301". Kindly help me. Here is ther stack trace : 02-21 21:07:27.258: E/AndroidRuntime(4013): FATAL EXCEPTION: AsyncTask #1 02-21 21:07:27.258: E/AndroidRuntime(4013): java.lang.RuntimeException: An error occured while executing doInBackground() 02-21 21:07:27.258: E/AndroidRuntime(4013): at android.os.AsyncTask$3.done(AsyncTask.java:299) 02-21 21:07:27.258: E/AndroidRuntime(4013): at java.util.concurrent.FutureTask

Could not find class oauth.signpost.commonshttp.CommonsHttpOAuthConsumer

我的梦境 提交于 2019-12-01 01:43:32
I had to format and start over yesterday, and I'm trying to get my project up and running again. I use the signpost library for OAuth authentication. I've imported my project and Eclipse gives me no errors in the text editor. However, when I run my app and hit the oauth code, my app bombs with the following error: 04-25 15:07:04.485: E/dalvikvm(344): Could not find class 'oauth.signpost.commonshttp.CommonsHttpOAuthConsumer', referenced from method com.myapp.app.ws.WebService.addHeaders The project seems to find the jar files just fine. They show up in the Java Build Path -> Libraries tab. I'm

Android OAuth: Exception on retrieveAccessToken()

南笙酒味 提交于 2019-11-30 12:19:02
问题 I'm setting up OAuth for my Android app. To test it I did the following: Added signpost-core-1.2.1.1.jar and signpost-commonshttp4-1.2.1.1.jar to my project, added the variables "CommonsHttpOAuthConsumer consumer" and "CommonsHttpOAuthProvider provider" and did the following when the button is clicked: consumer = new CommonsHttpOAuthConsumer("xxx", "yyy"); provider = new CommonsHttpOAuthProvider("https://api.twitter.com/oauth/request_token", "https://api.twitter.com/oauth/access_token",

Android OAuth: Exception on retrieveAccessToken()

拥有回忆 提交于 2019-11-30 02:26:48
I'm setting up OAuth for my Android app. To test it I did the following: Added signpost-core-1.2.1.1.jar and signpost-commonshttp4-1.2.1.1.jar to my project, added the variables "CommonsHttpOAuthConsumer consumer" and "CommonsHttpOAuthProvider provider" and did the following when the button is clicked: consumer = new CommonsHttpOAuthConsumer("xxx", "yyy"); provider = new CommonsHttpOAuthProvider("https://api.twitter.com/oauth/request_token", "https://api.twitter.com/oauth/access_token", "https://api.twitter.com/oauth/authorize"); oauthUrl = provider.retrieveRequestToken(consumer, "myapp:/

Android Dev - Callback URL not working… (0_o)

被刻印的时光 ゝ 提交于 2019-11-28 22:03:50
I'm working on an android application for my research, and I am working with OAuth (signpost library) to gain access to user data from a web service which is also a part of the development process. I am able to flow through the common steps of OAuth, and I use a Uri (for callback to the app), and can get to the step where I invoke the devices browser, choose to verify my app, and the next step is SUPPOSED to redirect the browser BACK to the application.... Instead I get an error that reads something like "you do not have permission to open: appSchema://appName?authorizationSensitiveInfo..."