Announcement

Collapse
No announcement yet.

[Plugin] Http/s REST, blueprintable JSON and Parse REST API manager at once (VaRest)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Hey @ufna
    I just wanted to ask if it is possible to use the Bing Speech API with your Plugin.
    It works like this: First you send a Authentication Key and audio file to the server and then you get a response in form of a JSON.
    Does this work with your plugin?

    Leave a comment:


  • replied
    Click image for larger version

Name:	VaRestHelp.jpg
Views:	1133
Size:	91.1 KB
ID:	1520546


    I am having some trouble doing this in C++
    any help to do the BindEvent To OnRequestComplete Function To another Function call "TempFunction"


    this is what I have so far::

    FLatentActionInfo latentInfo;
    Request = UVaRestRequestJSON::ConstructRequestExt(this, ERequestVerb::GET, ERequestContentType::x_www_form_urlencoded_url);
    Request->ApplyURL(UrlGetIp, RequestObject, this, latentInfo);
    Request->OnRequestComplete;

    been trying for over 4 hours to figure out.

    Leave a comment:


  • replied
    This is working perfectly so far, except, I don't get any difference between the 'Encode JSON' node and the 'Encode JSON to Single String' node. Both are creating single-line JSON nodes, and as I am exporting these to external .json files this is a bit messy.

    Anyone else experiencing this on 4.20?

    Leave a comment:


  • replied
    Request fails in packaged build for android

    Hi,
    I packaged the android apk and installed on Moto G5 S Plus. When i request the url on button. It always fails.

    I also disabled the Verify Peer. But it didn't work.




    Plugin Version:
    "Version" : 22,
    "VersionName" : "1.1-r22",

    Engine Version: 4.19.1 Release

    Log File : https://github.com/ufna/VaRest/files/2144949/mylog.log
    Attached Files

    Leave a comment:


  • replied
    I really can use some help here:

    on the web side I encode my Data and it returns some thing like this:
    {"status": "online","username": "shakoor","email": "shakoor@sh.com","banned": "no","kills": "0","wins": "0"}
    so i will use "Get Field" and it works fine but when I have some thing like this on the server:
    {"status": "online","username": "shakoor","email": "shakoor@sh.com","banned": "no","kills": "0","wins": "0"}{"status": "online","username": "shakoor2","email": "shakoor@sh.com2","banned": "no","kills": "0","wins": "0"}

    So I have more than 1 json object and let's say I want to show the second result
    I just don't know how proceed
    you see the same code works fine for 1 json object but when it is more than 1 it doesn't work
    so please please
    help me
    all I want to do is to have list of specific data on the server encoded as json and show them all
    that is it
    "GetResponseContent" will print everything I guess, but it does not work anymore (Deprecated)

    thank you again for your attention

    Respects

    Leave a comment:


  • replied
    when I wanted to use "GetResponseContent" It gives me This notification:

    DEPRECATED: please use GetResponseContentAsString() instead

    and when I use that it just shows this:
    {}

    so please help me I reeeaaaaallyyy need to use your plugin in Unreal Engine 4

    Just show me to the direction to learn

    Respects

    Leave a comment:


  • replied
    Originally posted by ufna View Post

    Yes, it's a deprecated field now. For valid responses use ResponseObj->Decode
    I have been trying to GET / POST data using only blueprints, but it is not working... I tryied "GET RESPONSE OBJECT" then "DECODE JSON", but the decode only returns a boolean. Shouldn't it return a string? How do I access the data from the website?

    I went through the documentation, but it is outdated since the "GET RESPONSE CONTENT" is deprecated.

    Thank you

    Leave a comment:


  • replied
    Just posting to thank the OP for VaRest. Spent the day setting it up and coding a php/mysql login system. Worked perfectly. Thank you.

    Leave a comment:


  • replied
    I am having difficulty with multiple POSTs to the same server. At Event BeginPlay the POST request is set up with the JSON buffer and POST request structure and attached to callbacks for request complete or failure. During runtime, calls are made to issue this post with a single field ("action") in the buffer. The first post goes through just fine (get response code 200 from server), but the second one seems to get through the VArest code (see "LogVaRest: Request (url body): POST ..." in output log), but the server doesn't see the message. Even running wireshark on the UE machine shows the POST not going out. Exactly three minutes after the second POST call I get a libcurl error on the output log, i.e., "LogHttp: Warning: 00000260BF1A9300: request failed, libcurl error: 0 (No error)". Am I modifying the JSON buffer correctly? Can the JSON buffer be reused like I do here? Hope this is the right place to post this kind of question.

    Leave a comment:


  • replied
    Apparently, it will be somewhere in this thread, but where can I find C++ documentation, please?

    Leave a comment:


  • replied
    Hi, please is there a way of knowing when the Apply URL node failed? Because when it fails it does not go to the next node and the OnRequestFail and OnRequestComplete binds do not work with Apply URL. I just get the error messages in LOG when it fails. So is there a way of knowing that the Apply URL node failed?

    Leave a comment:


  • replied
    I'm having trouble packaging a project to Linux, where the output log blames the VaREST plugin for not having a Linux binary. Indeed, VaRestPlugin\Binaries has Android, HTML5, IOS, Mac, TVOS, Win32, and Win64, but no Linux.

    I'm running on binary UE4.18.3 on Windows 10

    EDIT: I went ahead and used the source built version of Unreal to package to Linux. However, it would be much better if we could package to Linux from the binary version of Unreal =).
    Last edited by Oranjoose; 03-02-2018, 01:21 AM.

    Leave a comment:


  • replied
    Is this Plug in still active ?

    Leave a comment:


  • replied
    Originally posted by robmiracle View Post
    I'm trying to use VaRest to fetch a JSON object from a webAPI. I see the JSON data show up in the console log, but I can't figure out how to get the data into something I can use in blueprints. The simple GET example on the github site doesn't seem to call the event handler. Is there a clear simple example, of doing a GET request and getting the resulting JSON data into something useful?
    Same problem here, any help would be much appreciated as I'm going bald pulling my hair out

    Leave a comment:


  • replied
    Hi DoctorMikeReddy, Work for you do "Construct Json Request"?
    Here an example.
    Attached Files
    Last edited by CarlesGutierrez; 02-14-2018, 02:41 AM.

    Leave a comment:

Working...
X