Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: LWP::UserAgent POST example

by 1nickt (Canon)
on Jan 19, 2018 at 17:55 UTC ( [id://1207550]=note: print w/replies, xml ) Need Help??


in reply to LWP::UserAgent POST example

Hi, start with the LWP::UserAgent doc for POST requests and follow the links shown to learn how to build your request with the data needed by the API.

Great that your project has advanced to the point of making a trade. Be careful! You might want to practise with some generic POST requests to a less consequential endpoint until you get the hang of it.

Hope this helps!


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^2: LWP::UserAgent POST example
by marto (Cardinal) on Jan 19, 2018 at 17:59 UTC

    FWIW I second caution. I've seen bad trading bots go rogue.

Re^2: LWP::UserAgent POST example
by ssara (Acolyte) on Jan 19, 2018 at 18:03 UTC

    Thank You for your reply. Unfortunately I read that link which you sent but was not able to get the output. I am not able to understand how do I request the structure:

    Request Structure:

    REQUEST_SIGNATURE: API_KEY + "POST" + URI + NONCE + HASHED_POST_PARAMS

    API_KEY: Your Cryptopia api key

    URI: the request uri. e.g. https://www.cryptopia.co.nz/Api/SubmitTrade

    HASHED_POST_PARAMS: Base64 encoded MD5 hash of the post parameters

    NONCE: unique indicator for each request.

    So question is how do I join this api https://www.cryptopia.co.nz/api/SubmitTrade and pass the arguments to it

    Any help would be really appreciated.Thank You in advance!!

      Same deal as always: show your code so far, errors/warnings, expected output.


      The way forward always starts with a minimal test.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1207550]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-20 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found