<s> from bind import API , Request <EOL> from bind . callbacks import response_to_json , request_to_formdata <EOL> class GithubAPI ( API ) : <EOL> BASE_URL = "<STR_LIT>" <EOL> RESPONSE_CALLBACK = response_to_json <EOL> get_user_data = Request ( "<STR_LIT>" , "<STR_LIT:GET>" ) <EOL> get_user_data_extra = Request ( "<STR_LIT>" , "<STR_LIT:GET>" , requires_auth = True ) <EOL> comment_on_issue = Request ( "<STR_LIT>" , "<STR_LIT:POST>" , <EOL> request_callback = request_to_formdata , <EOL> requires_auth = True ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> gh = GithubAPI ( ) <EOL> gh . authenticate ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> comment = { "<STR_LIT>" : "<STR_LIT>" } <EOL> print gh . comment_on_issue ( comment , repo = "<STR_LIT>" , id = "<STR_LIT>" ) </s>
