Page 1 of 1

Access Muzei api from within automagic?

Posted: 16 Dec 2014 08:47
by drsood
Can I access Muzei api https://github.com/romannurik/muzei/wiki/API or 500px api https://github.com/500px/api-documentation from within Automagic? Muzei is a live wallpaper app and supports plugins via its api.

Re: Access Muzei api from within automagic?

Posted: 16 Dec 2014 17:52
by Martin
Hi,

Maybe action HTTP Request could work for 500px, but I didn't try. OAuth could be difficult or even impossible, I'm not sure about this.

For Muzei you could probably use trigger General Broadcast and listen for action com.google.android.apps.muzei.ACTION_ARTWORK_CHANGED. Accessing the current artwork could probably be done using action Query Content Provider. You will have to browse the source on github to find the actual content provider URI and see what kind of fields the content provider makes available. Working with Query Content Provider is also quite difficult and requires some knowledge about Android development.
Unfortunately I'm short on time so I can't give you a flow example to access muzei right now.

Regards,
Martin

Re: Access Muzei api from within automagic?

Posted: 17 Dec 2014 09:06
by drsood
Martin, thanks for pointing me in the right direction. Its sounds like a difficult job. I will try to go through Muzei's api code.