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
    New update is corrupting files and cant save, is anyone getting this?

    Leave a comment:


  • replied
    Hi again.

    I run into another issue trying to make something really easy but I can't seem to find why it's not working since this was already working.

    What I'm trying to do is simply pass a value from Unreal to the server through a PHP file but the values "NumEmpleado" and "Contrasena" always appear empty. Is there something am I doing wrong?

    I'll be glad if someone could help. Images are attached for blueprints and php file on server.

    Thank you very much.



    EDIT | SOLVED: I got it to work by changing it to a POST request and connecting the Get Request Object to the Request Object. (Last image attached)
    Attached Files
    Last edited by Carlos Flores; 01-26-2020, 09:13 PM.

    Leave a comment:


  • replied
    Originally posted by Carlos Flores View Post
    Hi everyone.

    A couple of years I made a project using VaRest plugin for getting and posting to a server database following a youtube tutorial and worked great but now I'm reusing the same logic and code for something else but I cannot find a way to get the response content from server since the node is deprecated, I always get an empty array. I already tried to getting the Response Object and encode it with no luck. I'm sharing an image of my blueprints and the code I'm using with php for getting data from server for better understanding.

    Can anyone point me in the right direction please. Should I use a different node approach or something else in the php code or both?.

    Thank you very much.
    Have a great day.
    I have figure it out how to make it work. I had to encode to json on the server side every time I needed to send a value to Unreal and then in blueprints Get Response Object -> Get String Field named in server side as I show in the pictures attached.

    Hope this information is helpful for someone.

    Thanks anyway.
    Attached Files

    Leave a comment:


  • replied
    Hi everyone.

    A couple of years I made a project using VaRest plugin for getting and posting to a server database following a youtube tutorial and worked great but now I'm reusing the same logic and code for something else but I cannot find a way to get the response content from server since the node is deprecated, I always get an empty array. I already tried to getting the Response Object and encode it with no luck. I'm sharing an image of my blueprints and the code I'm using with php for getting data from server for better understanding.

    Can anyone point me in the right direction please. Should I use a different node approach or something else in the php code or both?.

    Thank you very much.
    Have a great day.
    Attached Files

    Leave a comment:


  • replied
    how com call url node does not appear in the utilities?

    Leave a comment:


  • replied
    Solid Question. Is there a way to use this to handle downloading files and setting them to a specific location on user machine? Trying to create a updating system using php and my webhost. so far ive gotten it to compare users version with posted version on my server and if returns that update is available it will open url in browser and download the update. but that leaves it to the user having to unzip and put the file directly into the content/paks directory. is there a way to bypass having to open the url externally and just download it to the projects directory?

    Leave a comment:


  • replied
    Everytime I Write to file path is just write one line and that it. So I was wondering how to wtite full Json file to path. Please let me know, thinks.

    Leave a comment:


  • replied
    Hi, great plugin... i see early on in this thread you added support for nested json - can you tell me/point me at how to access the nested data? For eg: get the ID below...
    Code:
    {
        "user": {
            "data": {
                "ID": "1"
                 }
          }
    }
    I want to get user.data.ID

    Thanks!
    Ant

    Leave a comment:


  • replied
    please can someone help me with the binaries files for VaRest plugin

    Leave a comment:


  • replied
    Hey,
    First of all I want to thank you for the plugin! working great so far.

    I am trying to implement a PATCH request to a server, but can't seem to get it to work. it crashes with the errors provided in the pictures.
    it seems there is no support for PATCH method in the libcurl library..
    I would be happy to know if any of you have encountered the same issue, and how did you manage to get around it?

    Any help will be highly appreciated!
    Engine version 4.22.3
    the blueprint implementation:
    Click image for larger version  Name:	2.png Views:	1 Size:	91.0 KB ID:	1644532
    crashlog:
    Click image for larger version  Name:	1.png Views:	1 Size:	135.5 KB ID:	1644530
    class in cpp:
    Click image for larger version  Name:	3.png Views:	1 Size:	73.2 KB ID:	1644531
    Last edited by Israeld; 07-26-2019, 09:37 AM.

    Leave a comment:


  • replied
    Request always fails in HTML Shipping


    Request always fails in HTML Shipping. My logic is shown in the attached image. Can you please help here.

    I tried with UE 4.19, UE 4.20, UE 4.21
    Attached Files
    Last edited by L34D3R; 03-27-2019, 08:30 AM.

    Leave a comment:


  • replied
    SOLVED: I fixed my own problem I am editing post to reflect solution.

    My application of this plugin is retrieving information from Elasticsearch using its rest api. I have been able to send a simple get request and confirm that I can reach my server, but I cannot figure out how to use the blueprint nodes to construct my request. I am used to using the curl command when sending json to the api and so that is how I will show you what I am trying to accomplish. I am trying to do the equivalent of the following. curl -X GET "localhost:9200/twitter/_search" -H 'Content-Type: application/json' -d'
    {
    "query" : {
    "term" : { "user" : "kimchy" }
    }
    }
    '

    I tried to understand how to send this using this blueprint plugin but have become very frustrated and thus I am asking for help. I think I need to somehow set the request body but I am not sure how to do this. If anyone is willing to help that would be greatly appreciated.

    What I was doing wrong was not setting the request object after making the request. I also learned that the request object needed to be a json object using the field body and then my above json as the value(using the construct json object combined with set string field), I am attaching a quick screenshot of this for anyyone in the future. Click image for larger version  Name:	Screenshot-168.png Views:	3 Size:	113.1 KB ID:	1582817
    Last edited by ipninichuck; 02-09-2019, 10:30 PM.

    Leave a comment:


  • replied
    Having a little bit of a problem parsing the data within the blueprints my API is returning this as a JSON object but i can't seem to figure out how to break the object up to use the data.

    API Response:
    Code:
     
     {"playerinfo":{"Friends":"none","Lifetime_Score":0,"Facebook_ID":"0","User_ID":141,"Stars":"0","UserName":" ","Google_ID":"0"},"scores":{"Level":1,"Chapter":1,"Score":200,"Player_ID":141}}
    Blueprint is attached. Thanks in advance this plugin has saved me a lot of time!
    Attached Files

    Leave a comment:


  • replied
    Will this get updated to 4.21?

    Leave a comment:


  • replied
    I'm currently trying to use VaRest to login to a server via a third party api.

    I should be able to login by either processing a cURL or by passing headers and a body via a url.
    I've not be able to get VaRest to post correctly to the server.

    If I copy the cURL link from the api dashboard and into the Process URL node then the request fails and i get the same if i follow the logic in the attached screenshot. When i'm using the Set String Request Content, i'm only doing so because I couldn't find anything else relating to adding body content.

    I have experience working with PHP before inside of Unity but this is my first time using posting JSON so i'm sure there is something really simple that i'm missing.

    EDIT:
    So it seems to be working now using the Set String Field and Set Fields. How ever nesting a JSON field inside a field adds in square brackets and not curly brackets along with another formatting issue. Can anyone suggest how to get around this. I'll attach a screen shot.
    Attached Files
    Last edited by jeffries7; 09-18-2018, 11:42 AM.

    Leave a comment:

Working...
X