I need to have some, at least minimal example of an instagram client. I can't figure out how to authenticate to it.
I registered client_id and client_secret @ https://www.instagram.com/developer/clients/manage/
I did:
use API::Instagram; print "test API::Intagram\n"; my $instagram = API::Instagram->new({ client_id => '32symbol_hash_key_cid', client_secret => '32symbol_hash_key_cs', redirect_uri => 'http://kutkhtravel.com/' }); printf "auth_url: %s\n", $instagram->get_auth_url; my $code = "I didn't find in documentation, what is this code, and how + do I get it"; $instagram->code($code); my $access_token = $instagram->get_access_token; $instagram->access_token($access_token); #Then, I guess, I can use other fetures, such as reading posts, etc., +but I don't get to this point
I tried, in place of code to use $instagram->get_auth_url, then I manually went to the generated "get_auth_url", authenticated there, then got token manually, and used it in $access_token var. Didn't help me any. I don't understand, maybe I am doing things in the wrong order. I don't really understand how to do it correctly. POD is of no help.
On Search engines, trying to search for API::Instagram examples or perl instagram client, didn't find anything useful, where I could peek inside of code to figure out, what's my problem.

All I get for now is an error:

Use of uninitialized value $s in substitution (s///) at /usr/local/sha +re/perl/5.22.1/Furl/HTTP.pm line 202. Use of uninitialized value $v in concatenation (.) or string at /usr/l +ocal/share/perl/5.22.1/Furl/HTTP.pm line 204. malformed JSON string, neither tag, array, object, number, string or a +tom, at character offset 0 (before "<!DOCTYPE html>\n<!-...") at /usr +/local/share/perl/5.22.1/API/Instagram.pm line 200.

In reply to Can't get API::Instagram to work by igoryonya

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.