Perl-Sensitive Sunglasses | |
PerlMonks |
LWP::UserAgent POST exampleby ssara (Acolyte) |
on Jan 19, 2018 at 17:44 UTC ( [id://1207548]=perlquestion: print w/replies, xml ) | Need Help?? |
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!!
Back to
Seekers of Perl Wisdom
|
|