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.
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 containscode=xxx
and optionally other parameters.