hupili / snsapi

Cross platform middleware for Social Networking Services: Twitter, Facebook, SinaWeibo, Renren, RSS, Email, Sqlite, ... (more coming)
http://snsapi.ie.cuhk.edu.hk
159 stars 53 forks source link

why 'fetch_code' is called fetch_code, not 'fetch_url' #83

Closed hupili closed 10 years ago

hupili commented 10 years ago

This is just a historical name. The first several platforms are all on OAuth2 and we have to fetch the code from the server. If the interface only fetches a code, it is not so generalizable. e.g. some platforms contain more information than code=xxx (e.g. Tencent). Considering future non-traditional OSN platforms, we may want to pass more parameters. In this case, fetch_code actually fetches a url and the URL contains code=xxx and optionally other parameters.

hupili commented 10 years ago

Just to put a searchable note here.