Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bc3ca1
commit d637536
Showing
3 changed files
with
23 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
var nforce = require('../'); | ||
var sfuser = process.env.SFUSER; | ||
var sfpass = process.env.SFPASS; | ||
|
||
var org = nforce.createConnection({ | ||
clientId: '3MVG9rFJvQRVOvk5nd6A4swCyck.4BFLnjFuASqNZmmxzpQSFWSTe6lWQxtF3L5soyVLfjV3yBKkjcePAsPzi', | ||
clientSecret: '9154137956044345875', | ||
redirectUri: 'http://localhost:3000/oauth/_callback' | ||
}); | ||
|
||
org.authenticate({ username: sfuser, password: sfpass }, function(err, oauth) { | ||
if(err) throw err; | ||
org.getDescribe({ type: 'Account', oauth: oauth }, function(err, res) { | ||
if(err) throw err; | ||
console.log(res); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters