小编ihs*_*san的帖子

在iOS UITextField上显示验证错误,类似于Android的TextView.setError()

有没有办法在swift 上显示UITextField类似于Android的验证错误TextView.setError()

uikit ios swift

18
推荐指数
4
解决办法
2万
查看次数

适用于Android应用的Google Places API密钥

API Key为我的Android应用程序创建了一个(用于Android应用程序).它是谷歌地图API所要求的.但现在相同的密钥不适用于Google Places API.

我还尝试使用以下URL访问浏览器:

https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=my_key

我明白了:

{
   "error_message" : "This IP, site or mobile application is not authorized to use this API key.",
   "html_attributions" : [],
   "status" : "REQUEST_DENIED"
}
Run Code Online (Sandbox Code Playgroud)

当我用Google搜索答案时,我发现了这个:

https://developers.google.com/places/training/autocomplete-android

什么类型的API密钥?

在开始使用Place Autcomplete服务之前,您需要自己的Google Places API浏览器或服务器API密钥.请注意,Android API密钥不适用于地方自动填充服务.

这让我很困惑,因为我没有任何网络应用程序的URL,也没有任何服务器IP.因此,我很困惑如何得到一个Browser key或一个Server key

有谁能帮我弄清楚这里需要什么样的钥匙?另外,如果我必须创建一个Browser key或一个Server key,我该怎么办?

android google-maps google-maps-api-3 google-places-api google-play-services

8
推荐指数
2
解决办法
1万
查看次数

EC2:如何获取实例的 Vpc ID?

我正在尝试找出实例的 vpc-id。任何人都可以参考可以解决这个问题的API吗?我使用的是java sdk。

java amazon-ec2 amazon-web-services amazon-vpc

3
推荐指数
2
解决办法
4037
查看次数