ssara has asked for the wisdom of the Perl Monks concerning the following question:
Hello, I am trying to use POST method to send information to an API.Please can you provide me an example on how to use it.
I would like to call the below api which requires following inputs:URI: https://www.cryptopia.co.nz/api/SubmitTrade
Input Parameters are:-
Market: The market symbol of the trade e.g. 'DOT/BTC' (not required if 'TradePairId' supplied)
TradePairId: The Cryptopia tradepair identifier of trade e.g. '100' (not required if 'Market' supplied)
Type: the type of trade e.g. 'Buy' or 'Sell'
Rate: the rate or price to pay for the coins e.g. 0.00000034
Amount: the amount of coins to buy e.g. 123.00000000
Please can you tell me how I can call this api from perl ?
Thank You in advance!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::UserAgent POST example
by Discipulus (Canon) on Jan 19, 2018 at 17:58 UTC | |
|
Re: LWP::UserAgent POST example
by 1nickt (Canon) on Jan 19, 2018 at 17:55 UTC | |
by marto (Cardinal) on Jan 19, 2018 at 17:59 UTC | |
by ssara (Acolyte) on Jan 19, 2018 at 18:03 UTC | |
by 1nickt (Canon) on Jan 19, 2018 at 18:41 UTC |