Permalink
Browse files

Using API1.1 verify credentials URL when upload image to Lockerz.

  • Loading branch information...
1 parent 8fbb2d4 commit 60b367e4be1e1a7c9c93f6ff464a03a952f4dedc @s17er s17er committed Feb 21, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 twitter4j-media-support/src/main/java/twitter4j/media/PlixiUpload.java
@@ -56,9 +56,9 @@ protected String postUpload() throws TwitterException {
@Override
protected void preUpload() throws TwitterException {
- String verifyCredentialsAuthorizationHeader = generateVerifyCredentialsAuthorizationHeader(TWITTER_VERIFY_CREDENTIALS_XML_V1);
+ String verifyCredentialsAuthorizationHeader = generateVerifyCredentialsAuthorizationHeader(TWITTER_VERIFY_CREDENTIALS_JSON_V1_1);
- headers.put("X-Auth-Service-Provider", TWITTER_VERIFY_CREDENTIALS_XML_V1);
+ headers.put("X-Auth-Service-Provider", TWITTER_VERIFY_CREDENTIALS_JSON_V1_1);
headers.put("X-Verify-Credentials-Authorization", verifyCredentialsAuthorizationHeader);
if (null == apiKey) {

0 comments on commit 60b367e

Please sign in to comment.