Skip to main content

Posts

Showing posts from January, 2023

CLEO Portal (Integration Cloud) for SFTP - Rest API Transfer

  This blog details about using CLEO REST API to transfer file(s) between SFTP.  Normally, people utilize SFTP/ FTP protocol to connect to server.  But, if server is integrated with CLEO Portal then one can make use of CLEO HTTP(s) Rest API to transfer file as following -  GENERATE AUTHORIZATION TOKEN USING USERNAME & PASSWORD  curl -X POST https://YOURTENANT.cleointegration.com/ api/authentication   -H 'content-type: application/x-www-form-urlencoded' -d 'grant_type=password&username= USERNAME &password= PASSWORD &totp_code=undefined' Above Curl invocation will return a JSON Message with access Token that should be passed as header Authorization : Bearer *  for future invocation to API. {    "token_type":"bearer",    "access_token":"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJrdXFiMDNXTlEtYVZra1lRWGlSa1RBIiwiY3ljbGVJZCI6IkYiLCJpc3MiOiJodHRwOlwvXC93d3cuY2xlby5jb20iLCJvbW5pSWQiOiJrdXFiMDNXTlEtYVZra1lRWGlSa1RBIiwiZXhwIjoxNjc0MDkwN...