Wednesday, August 5, 2020

Monkeybread software filemaker plugin download coinmarketcap map using CURL

Download coinmarket cap list of all the coins and tokens it tracks using Monkeybread software's Filemaker plugin and FMPA 15. Here's the script text:

Set Variable [ $curl ; Value: MBS("CURL.New") ] 

Set Variable [ $result ; Value: MBS("CURL.SetOptionURL"; $curl; "http://pro-api.coinmarketcap.com/v1/cryptocurrency/map") ] 

Set Variable [ $result ; Value: MBS("curl.SetOptionHTTPHeader";$curl;"Limit: 6000";      "Postman-Token: <<No you don't get the postman token>>" ;      "X-CMC_PRO_API_KEY: <<No you don't get my API key>>" ;     "cache-control: no-cache" ;     "listing_status: active" ;     "start: 1") ] 

Set Field [ CURL Test::Result ; MBS("CURL.Perform"; $curl) ] 

Set Field [ CURL Test::Content ; MBS("CURL.GetResultAsText"; $curl) ] 

Set Field [ CURL Test::debug ; MBS("CURL.GetDebugAsText"; $curl) ] 

Set Field [ CURL Test::header ; MBS("CURL.GetHeaderAsText"; $curl) ] 

Set Variable [ $result ; Value: MBS("CURL.Cleanup"; $curl) ] 



No comments:

Post a Comment