def __build_url(self, api_call, **kwargs):
kwargs['<STR_LIT:key>'] = self.api_key<EOL>if '<STR_LIT>' not in kwargs:<EOL><INDENT>kwargs['<STR_LIT>'] = self.language<EOL><DEDENT>if '<STR_LIT>' not in kwargs:<EOL><INDENT>kwargs['<STR_LIT>'] = self.__format<EOL><DEDENT>api_query = urlencode(kwargs)<EOL>return "<STR_LIT>".format(urls.BASE_URL,<EOL>api_call,<EOL>api_query)<EOL>
Builds the api query