Comments (2)
I have found what actually is causing the issue in a related ticket:
ciaranj/node-oauth#113 (comment)
from ntwitter.
It 's not fixed by calling this.oauth.post with a stringified version of the parameters.
This explains why: ciaranj/node-oauth#113 (comment)
For now, I have forked oauth and ntwitter and implemented the fix in oauth. That is quite hacky and the reason why I didn 't do a pull request of it. The change could break oauth in other library apart from twitter.
Op 27-sep.-2012, om 02:10 heeft David Lee het volgende geschreven:
Has the issue been resolved? Any solutions? I tried copying and pasting your solution, but it still didn't work:
var url = stream_base + '/' + escape(method) + '.json';
// to stringify to fix problems with ' characters in track parameter
var stringified_params = querystring.stringify(params);
stringified_params = stringified_params
.replace(/!/g, "%21")
.replace(/'/g, "%27")
.replace(/(/g, "%28")
.replace(/)/g, "%29")
.replace(/*/g, "%2A");var request = this.oauth.post(
url,
this.options.access_token_key,
this.options.access_token_secret,
stringified_params, null
);—
Reply to this email directly or view it on GitHub.
from ntwitter.
Related Issues (20)
- Does streaming work with 1.1 API? HOT 2
- status/firehose doesn't work HOT 5
- reportSpam doesnt work
- Add additional collaborators? HOT 5
- Update with Media
- Rate Limit Status url is wrong
- showUser doesn't work with numerical usernames
- Is stream.on('end') always called when the connection is closed?
- Issue with the twitter API and ntwitter package
- doing more complex queries
- authorize_url vs. authenticate_url
- Post from multiple accounts
- I get some problems when i use ntwitter HOT 1
- Refresh the track list of a stream HOT 3
- Unspecified 'error' event HOT 2
- Add statuses/lookup entry point
- connect "ECONNREFFUSED" Error.
- Updated Fork (For anyone who needs this library)
- What was this deprecated in favour of?
- Login Twitter
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 ntwitter.