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.