Skip to content

Commit

Permalink
Add dropbox subpackage with the Dropbox OAuth 1 Endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
dghubble committed Apr 27, 2015
1 parent fbd5227 commit 5256a13
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions dropbox/dropbox.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Package dropbox provides constants for using OAuth1 to access Dropbox.
package dropbox

import (
"github.com/dghubble/oauth1"
)

// Endpoint is Dropbox's OAuth 1 endpoint.
var Endpoint = oauth1.Endpoint{
RequestTokenURL: "https://api.dropbox.com/1/oauth/request_token",
AuthorizeURL: "https://api.dropbox.com/1/oauth/authorize",
AccessTokenURL: "https://api.dropbox.com/1/oauth/access_token",
}
4 changes: 2 additions & 2 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ The OAuth 1 flow can be used to implement Sign in with Twitter if receipt of an
Use an Access Token to make requests on behalf of a Twitter user.

export TWITTER_CONSUMER_KEY=xxx
export TWITTER_CONSUMER_SECRET=xxx
export TWITTER_CONSUMER_SECRET=yyy
export TWITTER_ACCESS_TOKEN=xxx
export TWITTER_ACCESS_TOKEN_SECRET=xxx
export TWITTER_ACCESS_TOKEN_SECRET=yyy

Run to perform requests as the user (reads only, it won't tweet anything)

Expand Down

0 comments on commit 5256a13

Please sign in to comment.