mohamedmansour / google-plus-extension-jsapi

Unofficial Google+ Read/Write Extension API
https://plus.google.com/116805285176805120365/posts/JYiVWmFbeSn
Other
175 stars 35 forks source link

A simplistic way of handling pages #36

Closed tzafrir closed 12 years ago

tzafrir commented 12 years ago

Hey Mo, I'd like to have your input on this before committing.

I added the page id to the constructor's opt parameter, modified the database to be named according to the active identity, and added a factory method that constructs apis for all the user's identities.

This way with very few changes to the api code, it's possible to be able to use all of the user's identities, by calling the appropriate api object, and each instance has its own db for circles and memberships.

mohamedmansour commented 12 years ago

That is really great @tzafrir :) I really like your style!