I integrated the Google URL-Shorten API in my iOS application for testing purposes only. The Bundle ID of my application is added by me to the Authorized iOS Applications list to send a request.
But whenever I send an HTTP POST request using NSURLRequest , I get the following error in the JSON response:
{ "error": { "errors": [ { "domain": "usageLimits", "reason": "accessNotConfigured", "message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration.", "extendedHelp": "https://console.developers.google.com" } ], "code": 403, "message": "Access Not Configured. The API is not enabled for your project, or there is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your configuration." } }
I canβt figure out how to solve this. I assume that "maybe I need to use the API in an online application"
By maintaining a link to my guess from the API documentation
If your application accesses APIs directly from iOS, you will need the application Bundle ID and (optionally) its Apple App Store ID: The application Bundle ID is the bundle identifier as listed in the app .plist file. For example: com.example.myapp. The application App Store ID is in the app iTunes URL so long as the app was published in the Apple iTunes App Store. For example, in the app URL http:
source share