cancel
Showing results for 
Search instead for 
Did you mean: 

Convert this to a snap? How?

robert_parks
New Contributor III

I’m trying to use an API to post data to an application.

There is no account. Instead I have a specific account.

The curl API looks like this:
curl https://communicate.modolabs.net/api/v1/directories/revisions --header “Authorization: Token myToken” --form “name=Modo Test” --form “upload=@directory.xml” where “myToken” would be the token I was given.

How do I convert this to the REST Snap?

13 REPLIES 13

I haven’t been able to get this work for my use. Tried different things and nothing worked.

@mike.korcynski @Sowmya_Rayavarapu @robert_parks
That’s horrible news guys. Again, I actually haven’t done a lot of work with our REST snaps and just to post this earlier post involved some learning for me. However, we absolutely should be able to get this to work! Maybe, I posted too many details suggesting I knew exactly how it works. I can roll-up my sleeves and help you guys get this working.

Thank you so much Matthew. Keep us posted.

mike_korcynski
New Contributor III

did you ever solve this?

mike_korcynski
New Contributor III

For me at least, if I understand the problem correctly, the primary issue seems to be when you set a form field to a file. you can’t then continue to set additional form fields.