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

version» Context lines:

pike.git/lib/modules/Web.pmod/Api.pmod/Api.pike:1: + #pike __REAL_VERSION__ +    //! Base class for implementing a @tt{(RESTful) WebApi@} like Facebook's   //! Graph API, Instagram's API, Twitter's API and so on.   //!   //! @b{Note:@} This class is useless in it self, and is intended to be   //! inherited by classes implementing a given @tt{Web.Api@}.   //!   //! Look at the code in @[Web.Api.Github], @[Web.Api.Instagram],   //! @[Web.Api.Linkedin] etc to see some examples of implementations.      #if defined(SOCIAL_REQUEST_DEBUG) || defined(SOCIAL_REQUEST_DATA_DEBUG)
pike.git/lib/modules/Web.pmod/Api.pmod/Api.pike:315:    }       if (utf8_decode) {    TRACE("Decode UTF8: %s\n", req->data());    return Standards.JSON.decode_utf8(unescape_forward_slashes(req->data()));    }       return Standards.JSON.decode(unescape_forward_slashes(req->data()));   }    - //! String format - //! - //! @param t - string _sprintf(int t) + protected string _sprintf(int t)   {    return sprintf("%O(authorized:%O)", this_program,    (_auth && !!_auth->access_token));   }      //! Convenience method for getting the URI to a specific API method   //!   //! @param method   protected string get_uri(string method)   {