Jquery Call Marketo API on Client Side | Community
Skip to main content
Level 2
Jun 29, 2021 3:49 PM UTC
Solved

Jquery Call Marketo API on Client Side

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.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Jun 29, 2021 5:43 PM UTC

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?

3 replies

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Jun 29, 2021 5:43 PM UTC

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?

Translate
BimalBkAuthor
Level 2
Jun 30, 2021 7:23 AM UTC

Hi  

 

 

 

Translate
SanfordWhiteman
Level 10
Jun 30, 2021 2:55 PM UTC


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.

Translate