Vishnu Shanmughan
Vishnu Shanmughan

Reputation: 101

Retrieve all shortened url created using google

I am working on a project in which i need to create shortened url. I am using google url shortener. Is there any way to retrieve all the urls created using the google account or using the api key

Upvotes: 0

Views: 68

Answers (1)

hem
hem

Reputation: 1032

You should use this.

GET https://www.googleapis.com/urlshortener/v1/url/history

In the headers, set Authorization header to Bearer <authtoken>

enter image description here Make sure you have a valid OAuth Token. Retrieving the Shortened URL History List of a user requires an access token.

You could generate one here for testing it out

Upvotes: 1

Related Questions