Comments (3)
please recheck
from oauth-1.0a.
I fixed that issue by the next way:
var oauth = OAuth({
consumer: {
public: config.twitter.consumerKey,
secret: config.twitter.consumerSecret
},
signature_method: 'HMAC-SHA1'
});
var request_data = {
url: 'https://api.twitter.com/1/statuses/update.json?include_entities=true',
method: 'POST',
data: {
//IMPORTANT: we must encode parameters
status: oauth.percentEncode("Hello Ladies + Gentlemen, a 'string containing special characters' ))!")
}
};
$.ajax({
url: request_data.url,
type: request_data.method,
//IMPORTANT: we must pass not encoded parameters here
data: request_data.data,
headers: oauth.toHeader(oauth.authorize(request_data, token))
}).done(function(data) {
//process your data here
});
from oauth-1.0a.
i mean i just release v1.0.0 yesterday, pls recheck this case
from oauth-1.0a.
Related Issues (20)
- Login authentication issue of token 403 error HOT 10
- Documentation and support for WebCrypto HOT 2
- Private key being escaped and duplicated when passed to hash_function
- Not to standard: Raw body is include in the signature base string
- Headers are inconsistent and/or not forming correctly with access token and access token secret HOT 2
- How to add oauth verify?
- 401 error - invalid oauth signature HOT 5
- oauth_verifier is missing HOT 3
- "Duplicate timestamp/nonce combination, possible replay attack. Request rejected." HOT 2
- TypeError: Cannot read property 'toUpperCase' of undefined HOT 4
- No oauth parameters supplied? HOT 1
- Signature Not Handling Complex Object Structure HOT 1
- TypeScript definitions should not have implicit any HOT 2
- oauth_signature does not match expected value in C# while get acess token in thmblr HOT 1
- oauth_consumer_key="undefined" in request headers HOT 1
- oauth in body not working with axios HOT 1
- How can a callback be specified in the Authorization header? HOT 2
- Verifying Signature helper? HOT 5
- CryptoJS include no longer available
- Index signature missing for OAuth.Header (typescript) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oauth-1.0a.