Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No access_token, cant build headers #3

Open
teolemon opened this issue Nov 10, 2017 · 0 comments
Open

No access_token, cant build headers #3

teolemon opened this issue Nov 10, 2017 · 0 comments

Comments

@teolemon
Copy link

I'm trying to contribute a new feature to Open Food Facts, but I'm not familiar with Perl

I'm getting

teolemon@ns3362784:~$ ./test_cloud_vision_pierre.pl 
No access_token, cant build headers at /usr/local/share/perl/5.20.2/Moo/Google/Client.pm line 41.
use strict;

use Moo::Google;
my $gapi = Moo::Google->new(access_token => 'XXXXXXX');
$gapi->do_autorefresh(1);

print "annotate\n";


my $r1 = Moo::Google->new(access_token => $gapi->Vision->Images->annotate({ features => [{ type => 'TEXT_DETECTION'}], image => { source => { imageUri => "https://static.openfoodfacts.org/images/products/356/470/917/6611/ingredients_fr.10.full.jpg"}}})->json;

use Data::Dumper;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant