Jquery Call Marketo API on Client Side | Community
Skip to main content
New Participant
June 29, 2021
Solved

Jquery Call Marketo API on Client Side

  • June 29, 2021
  • 1 reply
  • 2594 views

Hi there,

 

Can anyone help me how can i make Marketo APIs call on client side using jquery. I  Tried to call API but " CORS " issues is showing.

Please help and suggest i this is possible.

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

It’s not possible... and you shouldn’t even think about revealing REST client credentials in the browser.

 

What are you trying to build that would use REST API calls in direct/unmediated response to end-user actions?

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
June 29, 2021

It’s not possible... and you shouldn’t even think about revealing REST client credentials in the browser.

 

What are you trying to build that would use REST API calls in direct/unmediated response to end-user actions?

BimalBkAuthor
New Participant
June 30, 2021

Hi  

 

 

 

SanfordWhiteman
New Participant
June 30, 2021


Yes, the Measurement Protocol.

 

Note your idea of getting the Lead ID right after the form submit wouldn’t even work reliably, as the the ID isn’t guaranteed to be available in the session right away (in the very next pageview). On the server, it’s always reliable.