当我尝试使用其余API为我的Google App Engine应用程序获取域时出现此错误。它说method()需要1个参数(给定2个参数),有人可以帮助我吗?
void GetString(char *buffer, int count)
{
fgets(buffer, count, stdin);
fseek(stdin, 0, SEEK_END); // Doesn't affect next fgets if user input was larger than buffer size.
int length = strlen(buffer);
if (buffer[length - 1] == '\n') buffer[length - 1] = '\0'; // Remove the newline.
}
答案 0 :(得分:0)
我认为您应该添加
domainMappingsId
,参数名称到您的参数列表。
rest_service.apps().domainMappings().get(domainMappingsId="apps/branchify-dashboard/domainMappings/sample.branchify.co")
答案 1 :(得分:0)
我找到了问题所在,并发表了一篇中篇文章。对于将来需要此功能的人,您可以在这里查看:https://medium.com/@timothyouano/google-app-engine-custom-domains-getting-and-creating-them-progammatically-using-python-162f9c38ba4