-
-
Notifications
You must be signed in to change notification settings - Fork 90
Download files from MyMiniFactory #4479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
I think I'm being a fool; can't find the MMF Client ID and secret anywhere...? 😵💫 |
I was just looking into this and thinking I should work on this, but seems like you've already got it going. I managed to get a working cobbled together solution just using postman and their API docs so maybe I can contribute what I know: To do anything with their API, you have to go create a developer application. The Client ID they ask for in the auth flow is going to be the slug you create for the application. It's labeled as From there you have two options. The simpler way would be to use their implicit auth flow, which would probably be fine from a security standpoint since I would bet most people are self-hosting their personal stuff. If you want to do it the right way though, you should use the explicit auth flow. You first use the client ID to request a client secret with the authorization URL below (from the API docs) Then you use that code with their token URL (which I'm now realizing is incorrect in their docs here lol) Anyways, it's outlined in more detail here and this version of the docs has the correct token URL: Happy to contribute to this in any other way I can. Unfortunately I'm not familiar enough with Ruby to actually be useful from a dev perspective. |
|
Thanks, I'm used to situations where I'm given the client key and secret, so I ended up a bit confused. I'll dig in a bit more next week! |
|
Looking forward to this! |
|
Get any time to look into this? I'd be interested in helping debug/test. |
|
Not had chance to get back to this yet, sorry! Bit constrained on time at the moment :) |
|
@planetflake has been working on this. Biggest issue currently, there is not a way to get all the object id's from your library via the api (yet, it's been requested.) https://github.com/planeflake/manyfold |


Work in progress; the code will work, but in order to access download URLs, we need to use a different OAuth flow, just API key isn't good enough.