Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl 'https://www.googleapis.com/urlshortener/v1/url?key=<MYAPIKEY>
- -H 'Content-Type: application/json'
- -d '{"longUrl": "http://www.google.com/"}'
- {
- "error": {
- "errors": [
- {
- "domain": "global",
- "reason": "required",
- "message": "Required parameter: shortUrl",
- "locationType": "parameter",
- "location": "shortUrl"
- }
- ],
- "code": 400,
- "message": "Required parameter: shortUrl"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement