Visual Builder

Get Involved. Join the Conversation.

Topic

    Shakila Murugan
    How to access Curl Command using javascript in VBCS
    Topic posted September 20, 2019 by Shakila MuruganBronze Medal: 1,250+ Points, tagged Custom Code, REST, SaaS Integration, Security, Services, Stage / Publish / DevOps, Web 
    29 Views, 1 Comment
    Title:
    How to access Curl Command using javascript in VBCS
    Content:

    Hi Team,

    I want to get Access token from fusion, so i need to pass credentials via curl command.

    Please inform to me how to access Curl or If there any other way please let me know.

    Please find the below url for curl commands.

    https://docs.oracle.com/en/cloud/get-started/subscriptions-cloud/csimg/obtaining-access-token-using-self-signed-client-assertion.html

     

    Regards,

    Shakila

    Version:
    19.1.3

    Comment

     

    • Duncan Mills

      CURL is a command line tool for the O/S - it can't be called from a browser session.

      However, if you 1) Read up on what CURL does and 2) look at the link you provided then you'll see that all the CURL command is doing is submitting a POST request.  Therefore you should be able to define a service endpoint in Visual Builder to issue this POST request to get the token.  I don't have a suitable setup to try this out, but basically it looks like you would define a POST with a payload type of multipart/form-data to get this running.