So basically what I’ve been working on for a couple of weeks now is what I call HttpRbxApiService
or Just a few HttpRequests and DataStore calls.
The place is here:
and click F9 when you join, because the only functionality this has (because I haven’t really added any client side behavior to it) is that it will print a json string.
The text boxes and buttons on the left? Well in the textboxes you can input someones id or username and it will check if they exist in the database.
If they don’t then it returns a
{"success": false, "message": "404 Not Found"}
If they are registered, and you try to unfollow them and they aren’t actually being followed, it will return a
{"success": false, "message": "400 Bad Request"}
if you try to follow or block yourself it gives another 400, if you try block/follow someone you are already blocking/following it will return a “409 Conflict”
If you want to join/suggest things, don’t hesitate.
Note: This will be a community resource when I fix things more, and it becomes less verbose
// GET
void RBX::HttpRbxApiService::getAsync(const RBX::HttpRbxApiService* this, RBX::Http& httpRequest, RBX::ThrottlingPriority throttlePriority, boost::function<void(std::string)> resumeFunction, boost::function<void(std::string)> errorFunction);
void RBX::HttpRbxApiService::getAsync(const RBX::HttpRbxApiService* this, std::string urlPath, bool useHttps, RBX::ThrottlingPriority throttlePriority, boost::function<void(std::string)> resumeFunction, boost::function<void(std::string)> errorFunction);
void RBX::HttpRbxApiService::getAsyncLua(const RBX::HttpRbxApiService* this, std::string urlPath, bool useHttps, RBX::ThrottlingPriority throttlePriority, boost::function<void(std::string)> resumeFunction, boost::function<void(std::string)> errorFunction);
// POST
void RBX::HttpRbxApiService::postAsync(const RBX::HttpRbxApiService* this, RBX::Http& httpRequest, std::string& data, RBX::ThrottlingPriority throttlePriority, RBX::HttpService::HttpContentType content, boost::function<void(std::string)> resumeFunction, boost::function<void(std::string)> errorFunction);
void RBX::HttpRbxApiService::postAsync(const RBX::HttpRbxApiService* this, std::string urlPath, std::string data,bool useHttps, RBX::ThrottlingPriority throttlePriority, RBX::HttpService::HttpContentType content, boost::function<void(std::string)> resumeFunction, boost::function<void(std::string)> errorFunction);
void RBX::HttpRbxApiService::postAsyncWithAdditionalHeaders(const RBX::HttpRbxApiService* this, std::string urlPath, std::string data,bool useHttps, RBX::ThrottlingPriority throttlePriority, RBX::HttpService::HttpContentType content, RBX::HttpAux::AdditionalHeaders additionalHeaders, boost::function<void(std::string)> resumeFunction, boost::function<void(std::string)> errorFunction);
void RBX::HttpRbxApiService::postAsyncLua(const RBX::HttpRbxApiService* this, std::string urlPath, std::string data,bool useHttps, RBX::ThrottlingPriority throttlePriority, RBX::HttpService::HttpContentType content, boost::function<void(std::string)> resumeFunction, boost::function<void(std::string)> errorFunction);