Authentication 如何访问谷歌云端点&x27;Java服务器代码中的API密钥?
从Google云端点生成的Objective-C客户端在Authentication 如何访问谷歌云端点&x27;Java服务器代码中的API密钥?,authentication,google-cloud-endpoints,access-control,api-key,Authentication,Google Cloud Endpoints,Access Control,Api Key,从Google云端点生成的Objective-C客户端在GTLService.h中包含一个字段APIKey: // Some services require a developer key for quotas and limits. Setting this // will include it on all request sent to this service via a GTLQuery class. @property (nonatomic, copy) NSString *A
GTLService.h
中包含一个字段APIKey
:
// Some services require a developer key for quotas and limits. Setting this
// will include it on all request sent to this service via a GTLQuery class.
@property (nonatomic, copy) NSString *APIKey;
如何获得对服务器代码(Java plus端点注释)中传递的值的访问权限?也许这一项可以帮助您: 如果您想为端点添加某种安全性:
您认为API密钥会在原始HTTP数据中的什么位置出现?