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

Anonymous
Not applicable
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
Pavel_Franger
Level 2

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
SanfordWhiteman
Level 10 - Community Moderator

Use the offset to page through.

Pavel_Franger
Level 2

Thanks a lot Sanford! I will do that!

Pav
Anonymous
Not applicable
I gotcha !!!

You need /rest/
for example
https://endpoint.mktorest.com/rest/asset/v1/files.json?access_token=xxxxxxxxxxxxxxxxxxxxxxxxx
Anonymous
Not applicable
I am trying to call New REST APIs but it returns 403 Forbidden error too.