NetTalk Central

Author Topic: Curl to NT10  (Read 3858 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1871
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Curl to NT10
« on: April 19, 2018, 03:52:03 AM »
Hi... having:

curl -X GET --header 'Accept: application/json' --header 'Authorization: Token FailF9aQpL87S6PUN+4jJZV527qAduXCqWdvusWhqNB5CJQrmTKaerGNC6h7BWpY' 'https://demoapi.anywhereportfolio.com.ar/PosTrade/MarketData?mdEntryType=6'

How do I GET the same using NT10?

Thanks
-----------
Regards
Alberto

Alberto

  • Hero Member
  • *****
  • Posts: 1871
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Curl to NT10
« Reply #1 on: April 19, 2018, 05:24:07 AM »
Its...

net.SetAccept('application/json')
net.Authorization = 'Token FailF9aQpL87S6PUN+4jJZV527qAduXCqWdvusWhqNB5CJQrmTKaerGNC6h7BWpY'
net.GET('https://demoapi.anywhereportfolio.com.ar/PosTrade/MarketData?mdEntryType=6')

THANKS BRUCE!!
-----------
Regards
Alberto