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
pike.git/lib/modules/Web.pmod/Api.pmod/Instagram.pmod:485:    //!    //! @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    {