用于使用graphql端点的appsync python客户端
appsync-client的Python项目详细描述
AppSync客户端
用法
defcallback(client,userdata,msg):#use the msgpassappsyncClient=AppSyncClient()query=json.dumps({"query":"mutation {\n updateSecret(id:\"1234\",secretString:\"sdfsdf\") {\n id\n secretString\n }\n}\n"})response=appsyncClient.execute(region="us-east-2",url="https://..../graphql",method="POST",data=query,callback=callback)