thangman22 / google-cloud-vision-php

GoogleCloudVision Library for PHP
24 stars 18 forks source link

Problem with response #3

Open Hiduk opened 8 years ago

Hiduk commented 8 years ago

I have problem with curl response its returns NULL all the time on all examples. I Added my API KEY and did every thing what needs but still no luck.

levelfivehub commented 7 years ago

The repo doesn't support error messages using 'curl_error'. I'll be pushing this change today. Hopefully the repo owner can merge it.

imsocb commented 7 years ago

Hi, Is the library working i added the library (ver 1.02) through composer copied the example provided into my xampp php script but it did not give any echo response? I copied my service key text $gcv->setKey("Copied my google service key text into here");

Moreover, should the file path be something like $path = "$upload_folder/$id.jpeg"; $gcv->setImage("$path");

samwilson commented 7 years ago

You may like to try using the Wikisource fork of this package instead.

fre2mansur commented 7 years ago

I got 400 error on var dump i have valid api key. 'code' => int 400 'message' => string 'API Key not found. Please pass a valid API key.' (length=47) 'status' => string 'INVALID_ARGUMENT' (length=16)

samwilson commented 7 years ago

@fre2mansur sounds like you're not supplying your API key.

fre2mansur commented 7 years ago

Thanks, i have corrected. but now i got this error 'message' => string 'Request must specify image and features.'

i just use which image you given with that package. how to i get know the image safe or not.