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

version» Context lines:

pike.git/lib/modules/Web.pmod/Api.pmod/Instagram.pmod:1:   //! Instagram API implementation.      //! Instantiates the default Instagram API. - //! See @[WebApi.Api()] for further information about the arguments + //! 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,    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 WebApi.Api : parent; +  inherit Web.Api.Api : parent;    -  protected constant AuthClass = Auth.Instagram; +  protected constant AuthClass = Web.Auth.Instagram;       //! Getter for the @[Users] object which has methods for all @expr{users@}    //! related Instagram API methods.    //!    //! @seealso    //! @url{http://instagram.com/developer/endpoints/users/@}    Users `users()    {    return _users || (_users = Users());    }
pike.git/lib/modules/Web.pmod/Api.pmod/Instagram.pmod:161:    #define ASSERT_SCOPE(S,FUN) do { \    if (!auth->has_scope(S)) { \    error("The method %O requires the scope \"%s\" which is not set! ", \    FUN, S); \    } \    } while (0)       //! Internal convenience class.    protected class Method    { -  inherit WebApi.Api.Method; +  inherit Web.Api.Api.Method;       //! Internal convenience method    protected mixed _get(string s, void|ParamsArg p, void|Callback cb)    {    return parent::get(get_uri(METHOD_PATH + s), p, cb);    }       //! Internal convenience method    protected mixed _post(string s, void|ParamsArg p, string data,    void|Callback cb)