tav / tweetapp Goto Github PK
View Code? Open in Web Editor NEWFramework for creating Twitter apps on App Engine
Home Page: http://tav.github.com/tweetapp
Framework for creating Twitter apps on App Engine
Home Page: http://tav.github.com/tweetapp
Due to new parameters added to Twitter API for oauth access token, it is necessary to update the model for the "Oauth Access Token" class in this way:
class OAuthAccessToken(db.Model):
"""OAuth Access Token."""
service = db.StringProperty()
specifier = db.StringProperty()
oauth_token = db.StringProperty()
oauth_token_secret = db.StringProperty()
created = db.DateTimeProperty(auto_now_add=True)
# LP: parameters addon
screen_name = db.StringProperty()
user_id = db.StringProperty()
This will fix the "Error: length for element #0 in dict" error.
LP
Inside get_request_token, this line throws an error (line 224):
**dict( token.split('=') for token in token_info.split('&') )
Traceback (most recent call last):
File "/base/python_lib/versions/1/google/appengine/ext/webapp/init.py", line 501, in call
handler.get(_groups)
File "/base/data/home/apps/myapp/1/twitter_oauth_handler.py", line 361, in get
self.response.out.write(getattr(client, action)())
File "/base/data/home/apps/myapp/1/twitter_oauth_handler.py", line 202, in login
return self.get_request_token()
File "/base/data/home/apps/myapp/1/twitter_oauth_handler.py", line 224, in get_request_token
*_dict( list(token.split('=')) for token in token_info.split('&') )
ValueError: dictionary update sequence element 0 has length 1; 2 is required
As of 7/25/09, App Engine gives an immediate 500 Server Error when running this code. Running version 1.2.3 of the App Engine SDK, appcfg.py finishes with exit code 0.
twitter Oauth is currently broken in this app.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.