Support for Get Emails in the Asset Object REST API

Highlighted
Anonymous
Not applicable

Support for Get Emails in the Asset Object REST API

I'm trying to return data for Get Emails using the following;

    marketo_instance = "https://AAA-BBB-CCC.mktorest.com" 
    endpoint = "/asset/v1/emails.json"
    auth_token =  "?access_token=" + access_token
    maxreturn = "&maxReturn=20"
    offset = "&offset=0"

    request_url = marketo_instance + endpoint + auth_token + offset + maxreturn

    response = RestClient.get request_url

I get the following error;

`return!': 403 Forbidden (RestClient::Forbidden)

I'm using http://developers.marketo.com/documentation/asset-api/get-emails to work out the reuqired fields, which are offset, maxreturn, and access_token.

Could someone confrim if the following endpoint is live yet?

/asset/v1/files.json

The page says it was last updared in Dec 2014, despide the relase of the asset API being this month. Any help here would be excellent.

Thanks.
John

Tags (1)
5 REPLIES 5
Highlighted
Anonymous
Not applicable

Re: Support for Get Emails in the Asset Object REST API

I am trying to call New REST APIs but it returns 403 Forbidden error too.
Highlighted
Anonymous
Not applicable

Re: Support for Get Emails in the Asset Object REST API

I gotcha !!!

You need /rest/
for example
https://endpoint.mktorest.com/rest/asset/v1/files.json?access_token=xxxxxxxxxxxxxxxxxxxxxxxxx
Highlighted

Re: Support for Get Emails in the Asset Object REST API

Hi everyone,

I am attempting to retrieve every email id we have in our system but the limit is just 200.

Does anyone know a way to retrieve all the email id's?

Pav
Highlighted
Level 10 - Community Moderator

Re: Support for Get Emails in the Asset Object REST API

Use the offset to page through.

Highlighted

Re: Support for Get Emails in the Asset Object REST API

Thanks a lot Sanford! I will do that!

Pav