Waavi / url-shortener

Laravel 5 url shortener
MIT License
62 stars 33 forks source link

dailyLimitExceededUnreg from the getgo #11

Open JoshuaSoileau opened 6 years ago

JoshuaSoileau commented 6 years ago

I'm getting a 403 forbidden response on all requests.

[2018-02-10 00:30:17] local.ERROR: Client error: `POST https://www.googleapis.com/urlshortener/v1/url` resulted in a `403 Forbidden` response:
{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "dailyLimitExceededUnreg",
    "message": "D (truncated...)
 {"userId":2,"email":"my.username@gmail.com","exception":"[object] (Waavi\\UrlShortener\\Exceptions\\InvalidResponseException(code: 0): Client error: `POST https://www.googleapis.com/urlshortener/v1/url` resulted in a `403 Forbidden` response:
{
 \"error\": {
  \"errors\": [
   {
    \"domain\": \"usageLimits\",
    \"reason\": \"dailyLimitExceededUnreg\",
    \"message\": \"D (truncated...)
 at /Sites/MyApp/vendor/waavi/url-shortener/src/UrlShortener.php:59)

Is there an additional authentication step I need to make for a valid API key? I made it through their API console.

lucasctd commented 6 years ago

same error here

lucasctd commented 6 years ago

The weird thing is, I am using this package with another website made with Laravel 5.2 and it works fine, but with Lumen 5.4, it doesn't, and I have no idea why. I have also tried tzsk/shorten-url which always return null... Is anyone facing the same problem?