pike.git / lib / modules / Web.pmod / Api.pmod / Instagram.pmod

version» Context lines:

pike.git/lib/modules/Web.pmod/Api.pmod/Instagram.pmod:1: + #pike __REAL_VERSION__ +    //! Instagram API implementation. -  + //! https://instagram.com/developer/    -  + // FIXME?: Missing support for + // /media/shortcode/ + // /geographies/ + // /subscriptions/ +    //! Instantiates the default Instagram API.   //! See @[Web.Api.Api()] for further information.   //!   //! @param client_id   //! Your application key/id   //! @param client_secret   //! Your application secret   //! @param redirect_uri   //! The redirect URI after an authentication   //! @param scope   //! The application scopes to grant access to - this_program `()(string client_id, string client_secret, + protected this_program `()(string client_id, string client_secret,    void|string redirect_uri,    void|string|array(string)|multiset(string) scope)   {    return V1(client_id, client_secret, redirect_uri, scope);   }      //! Class for communicating with version 1 of the Instagram API.   class V1   {    inherit Web.Api.Api : parent;
pike.git/lib/modules/Web.pmod/Api.pmod/Instagram.pmod:483:    //!    //! @param tag_name    //!    //! @param cb    //! Callback function when in async mode    mapping search(string tag_name, Callback cb)    {    return _get("search", ([ "q" : normalize_tag(tag_name) ]), cb);    }    -  // Normalize the tag, ie remove any eventual leading #. +  // Normalize the tag, ie remove any leading #.    private string normalize_tag(string t)    { -  if (t && sizeof(t) && t[0] == '#') -  t = t[1..]; -  +  sscanf(t, "#%s", t);    return t;    }    }       //! Class implementing the Instagram Media API.    //! @url{http://instagram.com/developer/endpoints/media/@}    //!    //! Retreive an instance of this class via the @[media] property    protected class Media    {