Can you give an example of using the Proxima file API?

KevinM
KevinM
@kevinm
7 years ago
36 posts
Hey guys,

Love the Proxima API! Its a huge time saver and extremely useful.

Im having a problem getting my head around how the Proxima file is used and after
seeing the other Proxima File (How to use it) topic I still couldn't wrap my head around it.

I know the proxima file is automatic in its support to other proxima modules, but how can I get the users songs and videos (files) from one jamroom website to put into another? I can GET ( http://example.com/api/user/6) the user data and then POST to the other datastore but am at a loss of how to include the associated files in the URLs and POST the file(s) to the new destination.

Greatly appreciate any help and insights!
updated by @kevinm: 02/26/18 10:29:06AM
brian
@brian
7 years ago
10,136 posts
It's pretty much "automatic" - in other words, when you POST to create a new item you just need to post the file as well - this is not done by a URL or anything like that - your client needs to be able to send the proper headers and info to "upload" the file just as a browser would. The Proxima Files module will then "see" the associated file and make it part of the data for the item.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags