def get_access_token(self, code, method='<STR_LIT:POST>', parse=True):
data = {<EOL>'<STR_LIT>': self.CLIENT_ID,<EOL>'<STR_LIT>': self.CLIENT_SECRET,<EOL>'<STR_LIT>': self.REDIRECT_URI,<EOL>'<STR_LIT:code>': code,<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>if method == '<STR_LIT:POST>':<EOL><INDENT>res = self.http_post(self.ACCESS_TOKEN_URL, data, parse=parse)<EOL><DEDENT>else:<EOL><INDENT>res = self.http_get(self.ACCESS_TOKEN_URL, data, parse=parse)<EOL><DEDENT>self.parse_token_response(res)<EOL>
parse is True means that the api return a json string. 
        So, the result will be parsed by json library.
        Most sites will follow this rule, return a json string.
        But some sites (e.g. Tencent), Will return an non json string,
        This sites MUST set parse=False when call this method,
        And handle the result by themselves.

        This method Maybe raise SocialAPIError.
        Application MUST try this Exception.