Skip to content

Commit

Permalink
Fixed up oauth bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Nguyen committed Apr 18, 2012
1 parent b0e1291 commit 4e4178a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
18 changes: 18 additions & 0 deletions What Should Be Sent to FreshBooks
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
What Should Be Sent to FreshBooks
================
multipart posting
--END_OF_PART
Content-type: application/xml; charset=utf-8

[XML]
--END_OF_PART
Content-Type: [CONTENT-TYPE]
Content-Disposition: attachment; filename=[FILENAME]
Content-ID: [CONTENT-ID]

[FILE-CONTENT]

--END_OF_PART

================
multipart/related; boundary=END_OF_PART
4 changes: 3 additions & 1 deletion interact.html
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@
* Methods for handling the OAuth Dance
*/
function detectOAuthCallbackAttempt() {

// Look for verifiers
var querystring = window.location.href.split("?");
if (querystring.length > 1) {
Expand All @@ -538,7 +539,8 @@
token = keypair[1];
}
}
requestAccessToken(fb, token, verifier);

requestAccessToken(token, verifier);
}
}

Expand Down

0 comments on commit 4e4178a

Please sign in to comment.