Access Muzei api from within automagic?

Post your questions and help other users.

Moderator: Martin

Post Reply
drsood
Posts: 16
Joined: 06 Oct 2013 07:42

Access Muzei api from within automagic?

Post by drsood » 16 Dec 2014 08:47

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.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Access Muzei api from within automagic?

Post by Martin » 16 Dec 2014 17:52

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

drsood
Posts: 16
Joined: 06 Oct 2013 07:42

Re: Access Muzei api from within automagic?

Post by drsood » 17 Dec 2014 09:06

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.

Post Reply