Page 1 of 1

Mixcloud / Integration / API with CMSMS

Posted: Tue Mar 10, 2015 3:07 pm
by naturelab
Does anyone had any experience with embedding Mixcloud cloudcasts / widgets on their CMSMS site ?

Typically the embed code is like this...

Code: Select all

<__iframe src="https://www.mixcloud.com/widget/iframe/?embed_type=widget_standard&embed_uuid=1c7f2c68-0e8a-4274-8676-ef6f4a5be254&feed=https%3A%2F%2Fwww.mixcloud.com%2Fextrastereo%2Fextrastereo-nothing-lasts-forever-it-will-remain-remain-remain-waiting-for-a-new-creation%2F&hide_cover=1&hide_tracklist=1&replace=0" frameborder="0" height="180" width="660"></__iframe><div style="clear: both; height: 3px; width: 652px;"></div><p style="display: block; font-size: 11px; font-family: "Open Sans",Helvetica,Arial,sans-serif; margin: 0px; padding: 3px 4px; color: rgb(153, 153, 153); width: 652px;"><a href="https://www.mixcloud.com/extrastereo/extrastereo-nothing-lasts-forever-it-will-remain-remain-remain-waiting-for-a-new-creation/?utm_source=widget&utm_medium=web&utm_campaign=base_links&utm_term=resource_link" target="_blank" style="color:#808080; font-weight:bold;">Extrastereo - NOTHING lasts forever, it will remain, remain, remain, waiting for a new creation…</a><span> by </span><a href="https://www.mixcloud.com/extrastereo/?utm_source=widget&utm_medium=web&utm_campaign=base_links&utm_term=profile_link" target="_blank" style="color:#808080; font-weight:bold;">Extrastereo</a><span> on </span><a href="https://www.mixcloud.com/?utm_source=widget&utm_medium=web&utm_campaign=base_links&utm_term=homepage_link" target="_blank" style="color:#808080; font-weight:bold;"> Mixcloud</a></p><div style="clear: both; height: 3px; width: 652px;"></div>
Simple to provide a text area, in which to paste the embed code for a one-off, but I am hoping to build a site that will handle hundreds cloudcasts and am hoping to find a way to easily select and display cloudcasts.

Anyone used this API ?

Code: Select all

https://www.mixcloud.com/developers/




Just putting this out there to see if anyone has any ideas ?

Thanks

Re: Mixcloud / Integration / API with CMSMS

Posted: Wed Mar 11, 2015 9:01 pm
by JohnnyB
You can write a UDT that populates the iframe and tag attributes. Then use the UDT plugin tag with params set.

For example, your UDT might have a param for SRC, LINK, LINK_TEXT

And if you call your UDT, "Mixcloud", then in your page, you would place:
{Mixcloud SRC='http://the-iframe-path' LINK='http://the-link-path' LINK_TEXT='Click Here'}

and the udt will populate what is needed....

Check out the help for UDT and if you want to use the API, then you could write a plugin or module for it.
http://docs.cmsmadesimple.org/tags/user ... ting-a-udt

Re: Mixcloud / Integration / API with CMSMS

Posted: Wed Mar 11, 2015 9:07 pm
by naturelab
Thanks JohnnyB. That's a great starting point. Appreciate your time.