FAQ  •  Register  •  Login

serviidb.com

<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Thu Feb 23, 2012 5:17 pm

Re: serviidb.com

Yes for me at first simple is better. I am new at creating a rest server. those examples helped alot.

For changing anything on serviidb via rest server each app will have its own login info. To help protect the data and site.

Sent from my DROIDX using Tapatalk
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Fri Feb 24, 2012 2:25 am

Re: serviidb.com

Xmantium wrote:The table view should be the default view when a user accesses the site, after a user clicks program name then the full information should show

I used RoboForm to automatically fill out the 4oD data when it was the same, just copied and pasted the data i needed. Managed to add most popular 4oD shows.

Moltra can you delete the none plugins data you and i added before, i will add these back again with the correct plugin
Also it will be cool with the tables have more info, even better same icons appear next to URL stating its Video Source, web resource ect

done a mickup attatched


I have the table setup, but if I put in on the front page it does not sort by plugin. I am going to continue working on it.
Update: Table on front page.
Last edited by moltra on Fri Feb 24, 2012 9:35 am, edited 1 time in total.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Fri Feb 24, 2012 9:19 am

Re: serviidb.com

zip wrote:I'd say for making new changes via the API you'd have to be logged in otherwise you're open to spam.
Exactly that's why many GET don't need authentification.

zip wrote:Not sure if I like using the content-type in the url (.json, .html, etc), couldn't we just use the appropriate headers (Accept in a case of GET, Content-Type in the case of POST/PUT).
This is an open debate, both can be implemented. I personally prefer url, cause we can easily test it in browser (especially GET request).

zip wrote:I'd also use PUT everywhere instead of POST to make in indempotent (the client will have to provide ID for new entries).
I'd also start with something basic and useful from day 1 -> search for content. We can do plugins, update/delete/create requests, etc later, when we know what people use and we can re-visit the search functionality in a proper agile way :-)
I agree.
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Feb 26, 2012 10:05 am

Templates

Following on from ServiiDroid thread.

Templates/building blocks to help apps/consoles and users setup urls where they are ->infinity possibilities

These would usually be submitted/maintained by the plugin writers. They are effectively a more formal and structured way of writing what is often in the first post of the plugin threads.

  Code:
DisplayTitle=YouTube - Search terms
InputTitle1=Search term  -> Result stored in VALUE1
Hint1=Serviio sony
InputTitle2=null -> Result stored in VALUE2
Hint1=null
ResultURL = http://gdata.youtube.com/feeds/videos?q=VALUE1
ResultTitle=YouTube - VALUE1
MediaType=video
Type=RSS
SpaceChar=+


Gives
Title = YouTube - Serviio Sony
URL = http://gdata.youtube.com/feeds/videos?q=serviio+sony

  Code:
DisplayTitle=iPlayer- Episode
InputTitle1=Episode code  -> Result stored in VALUE1
Hint1=b01cks3v
InputTitle2=Title-> Result stored in VALUE2
Hint1=Top Gear - Series 18 - Episode 4
ResultURL = http://feeds.bbc.co.uk/iplayer/episode/VALUE1
ResultTitle=iPlayer - VALUE2
MediaType=video
Type=RSS
SpaceChar=null


Gives
Title = iPlayer - Top Gear - Series 18 - Episode 4
URL = http://feeds.bbc.co.uk/iplayer/episode/b01cks3v


They could also have a short guide to finding things like the BBC iPlayer episode code, but this would be on the serviidb website only (as it would just be for first time users) and wouldn't be available in the different apps/consoles
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

Larzendk

Serviio lover

Posts: 62

Joined: Sun Feb 05, 2012 9:57 am

Post Sun Feb 26, 2012 11:16 am

Re: serviidb.com

I get this error on top when i enter Servidb:

Notice: Undefined variable: debuggeron in google_analytics_counter_construct_content() (line 604 of /home/content/20/8959120/html/sites/all/modules/google_analytics_counter/google_analytics_counter.module).

Best regards Morten
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Sun Feb 26, 2012 12:25 pm

Re: serviidb.com

@larzendk - there's an issue with the counter module not updating but doesn't effect anything else

@will - thanks for taking the idea on board, bet you didn't know bout iplayer episode playback. The more reason we need building blocks to guide other Serviio users

@moltra - can we keep serviiDB related posts in this one thread, get confusing which one to subscribe to and follow
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Sun Feb 26, 2012 5:48 pm

Re: serviidb.com

Larzendk wrote:I get this error on top when i enter Servidb:

Notice: Undefined variable: debuggeron in google_analytics_counter_construct_content() (line 604 of /home/content/20/8959120/html/sites/all/modules/google_analytics_counter/google_analytics_counter.module).

Best regards Morten


Yes that is an error that should only show up one time. I have not had time to jump in that module and search that down.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Sun Feb 26, 2012 5:49 pm

Re: serviidb.com

Xmantium wrote:
@moltra - can we keep serviiDB related posts in this one thread, get confusing which one to subscribe to and follow


did not think about that.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Sun Feb 26, 2012 6:09 pm

Re: serviidb.com

It's cool, any big announcement just update the first main post ;)

I'm not not sure if you ever used nzbmatrix.com, they do an amazing job keeping their thousands of records easy to navigate. Their table database format is the one we should aim for. They also have an api system in place anyone can access via api password given to each member who registers.
- Was hoping you can make the icons smaller. Probably favicon ico style icons. This way more content can be seen on one page.
- Also can you make each plugin to view in tables. So on the left section, when I navigate o 4oD, it shows the 4oD folder only.

I used serviiDB today when installing Serviio on a new machine and it was so easy having all the links on one page! This was manual input, can't wait when the api is in place! :)
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Sun Feb 26, 2012 6:26 pm

Re: serviidb.com

I can make the icons smaller using 32x32 now can go to a smaller size. I am actually working on the API right now, trying to figure out how to setup the REST server. I can get back individual web resources if I know it's ID, trying to get so I can pull a list of ID's

I will look at that site and see what they have.

I am planning on carrying the tables to the plugin menu, but right now when I enable multi-languages the table stops working. So I do not want to create the new tables then have to go back and make changes if I to get the multi-languages working.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Wed Feb 29, 2012 5:55 am

Re: serviidb.com

Ignore all of this. I have left if here just as historical record of my cluelessness.

I have the beginning of the Restful server setup. Right now it is returning way to many fields and I am trying to cut them down. I am posting this to give other developers a peak on how it is setup right now. I hope to get rid of some steps in the future, but I cannot figure out how to include a search for the <tid> field. tid stands for taxonomy term, which is what durpal uses to link content. You have to watch out cause a resouces will have a <tid> field for each taxonomy term used in the content.

As you will see at the bottom of this post, I cannot figure out how to just get the media_resources for an individual plugin, right now each media_resource needs to be downloaded and checked to see if it requires the plugin. This is one thing I am working on figuring out. To be able to get just the media_resources for the selected plugin.

This one should give you a list of all the plugins.
  Code:
http://www.serviidb.com/rest/node?fields=title&parameters[type]=plugin

which gives the information in this format.
  Code:
<?xml version="1.0" encoding="UTF-8"?>
-<result is_array="true">-<item><title>SHOUTcast</title><uri>http://www.serviidb.com/rest/node/</uri></item>-<item><title>Trailer Addict</title><uri>http://www.serviidb.com/rest/node/</uri></item>-<item><title>Hulu (US)</title><uri>http://www.serviidb.com/rest/node/</uri></item>


You can see the different plugin titles between the <title> </title> field.

If you use that title in the following to get the information about the plugin.
  Code:
http://www.serviidb.com/rest/node?parameters[title]=shoutcast


Which gives you the following.
  Code:
<?xml version="1.0" encoding="utf-8"?>
<result is_array="true"><item><nid>106</nid><vid>123</vid><type>plugin</type><language>en</language><title>SHOUTcast</title><uid>34</uid><status>1</status><created>1330234373</created><changed>1330234373</changed><comment>2</comment><promote>1</promote><sticky>0</sticky><tnid>0</tnid><translate>0</translate><uri>http://www.serviidb.com/rest/node/106</uri></item></result>


If you then take the <uri> </uri> field and use it like below.

  Code:
http://serviidb.com/rest/node/106.xml


you get the following

  Code:
<?xml version="1.0" encoding="utf-8"?>
<result><vid>123</vid><uid>34</uid><title>SHOUTcast</title><log></log><status>1</status><comment>2</comment><promote>1</promote><sticky>0</sticky><ds_switch></ds_switch><nid>106</nid><type>plugin</type><language>en</language><created>1330234373</created><changed>1330234373</changed><tnid>0</tnid><translate>0</translate><revision_timestamp>1330234373</revision_timestamp><revision_uid>34</revision_uid><field_name><und is_array="true"><item><fid>32</fid><display>1</display><description></description><uid>34</uid><filename>shoutcast.groovy</filename><uri>public://Create Plugin/shoutcast.groovy</uri><filemime>application/octet-stream</filemime><filesize>2943</filesize><status>1</status><timestamp>1330234373</timestamp><rdf_mapping/></item></und></field_name><field_revision><und is_array="true"><item><value>1</value></item></und></field_revision><field_body/><field_plugins><und is_array="true"><item><tid>60</tid></item></und></field_plugins><rdf_mapping><rdftype is_array="true"><item>sioc:Item</item><item>foaf:Document</item></rdftype><title><predicates is_array="true"><item>dc:title</item></predicates></title><created><predicates is_array="true"><item>dc:date</item><item>dc:created</item></predicates><datatype>xsd:dateTime</datatype><callback>date_iso8601</callback></created><changed><predicates is_array="true"><item>dc:modified</item></predicates><datatype>xsd:dateTime</datatype><callback>date_iso8601</callback></changed><body><predicates is_array="true"><item>content:encoded</item></predicates></body><uid><predicates is_array="true"><item>sioc:has_creator</item></predicates><type>rel</type></uid><name><predicates is_array="true"><item>foaf:name</item></predicates></name><comment_count><predicates is_array="true"><item>sioc:num_replies</item></predicates><datatype>xsd:integer</datatype></comment_count><last_activity><predicates is_array="true"><item>sioc:last_activity_date</item></predicates><datatype>xsd:dateTime</datatype><callback>date_iso8601</callback></last_activity></rdf_mapping><cid>0</cid><last_comment_timestamp>1330234373</last_comment_timestamp><last_comment_name/><last_comment_uid>34</last_comment_uid><comment_count>0</comment_count><name>Xmantium</name><picture>0</picture><data>a:1:{s:7:"contact";i:1;}</data></result>


If you use <filename>shoutcast.groovy</filename> as below you can get the file information.
  Code:
http://www.serviidb.com/rest/file?parameters[filename]=shoutcast.groovy


This will return the following.

  Code:
<?xml version="1.0" encoding="utf-8"?>
<result is_array="true"><item><fid>32</fid><uid>34</uid><filename>shoutcast.groovy</filename><uri>http://www.serviidb.com/rest/file/32</uri><filemime>application/octet-stream</filemime><filesize>2943</filesize><status>1</status><timestamp>1330234373</timestamp></item></result>


if you use <uri>http://www.serviidb.com/rest/file/32</uri> as below you can get the download link to the file.

  Code:
http://www.serviidb.com/rest/file/32.xml


which gives the following.
  Code:
<?xml version="1.0" encoding="utf-8"?>
<result><fid>32</fid><uid>34</uid><filename>shoutcast.groovy</filename><uri>public://Create Plugin/shoutcast.groovy</uri><filemime>application/octet-stream</filemime><filesize>2943</filesize><status>1</status><timestamp>1330234373</timestamp><rdf_mapping/><uri_full>http://www.serviidb.com/sites/default/files/Create%20Plugin/shoutcast.groovy</uri_full><target_uri>Create Plugin/shoutcast.groovy</target_uri><file>aW1wb3J0IGdyb292eS5qc29uLkpzb25TbHVycGVyDQoNCmltcG9ydCBncm9vdnkuanNvbi5Kc29uU2x1cnBlcg0KDQppbXBvcnQgb3JnLnNlcnZpaW8ubGlicmFyeS5tZXRhZGF0YS4qDQppbXBvcnQgb3JnLnNlcnZpaW8ubGlicmFyeS5vbmxpbmUuKg0KaW1wb3J0IG9yZy5zZXJ2aWlvLnV0aWwuKg0KDQovKioNCiAqIFdlYlJlc291cmNlIGV4dHJhY3RvciBwbHVnaW4gZm9yIHNob3V0Y2FzdC5jb20uDQogKiANCiAqIEBhdXRob3IgamhiNTANCiAqDQogKi8NCmNsYXNzIFNob3V0Y2FzdCBleHRlbmRzIFdlYlJlc291cmNlVXJsRXh0cmFjdG9yIHsNCgkNCglmaW5hbCBWQUxJRF9GRUVEX1VSTCA9ICdeKD86aHR0cD86Ly8pPyg/Ond3d1xcLik/c2hvdXRjYXN0XFwuY29tLycNCgkNCglTdHJpbmcgZ2V0RXh0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5lcg0KCQkNCgkJQ29udGVudFVSTENvbnRhaW5lciByZXN1bHQgPSBleHRyYWN0b3IuZXh0cmFjdFVybChjb250YWluZXIuZ2V0SXRlbXMoKVszXSwgUHJlZmVycmVkUXVhbGl0eS5NRURJVU0pDQoJCXByaW50IHJlc3VsdA0KCX0gDQp9</file><image_styles/></result>


If you use the <uri_full>http://www.serviidb.com/sites/default/files/Create%20Plugin/shoutcast.groovy</uri_full> from above you can download the file.

  Code:
http://www.serviidb.com/sites/default/files/Create%20Plugin/shoutcast.groovy


OK now we have the plugin downloaded, now we can work on the media_resources

if you use the following you will get all the media_resources in the database. This one should give a big list of all the media resources. (yes resources is spelled wrong, will fix when I figure out how)
  Code:
http://www.serviidb.com/rest/node?parameters[type]=media_recourse


This is the format of the results.
  Code:
<?xml version="1.0" encoding="utf-8"?>
<result is_array="true"><item><nid>101</nid><vid>116</vid><type>media_recourse</type><language>und</language><title>One HD</title><uid>34</uid><status>1</status><created>1330037863</created><changed>1330037863</changed><comment>2</comment><promote>1</promote><sticky>0</sticky><tnid>0</tnid><translate>0</translate><uri>http://www.serviidb.com/rest/node/101</uri></item><item><nid>99</nid><vid>114</vid><type>media_recourse</type><language>und</language><title>HD Sports</title><uid>34</uid><status>1</status><created>1330024899</created><changed>1330024942</changed><comment>2</comment><promote>1</promote><sticky>0</sticky><tnid>0</tnid><translate>0</translate><uri>http://www.serviidb.com/rest/node/99


If you use the <uri>http://www.serviidb.com/rest/node/101</uri> from above you can get the detailed information on the resource.

  Code:
http://www.serviidb.com/rest/node/101.xml


which gives the following information.
  Code:
<?xml version="1.0" encoding="utf-8"?>
<result><vid>116</vid><uid>34</uid><title>One HD</title><log></log><status>1</status><comment>2</comment><promote>1</promote><sticky>0</sticky><ds_switch></ds_switch><nid>101</nid><type>media_recourse</type><language>und</language><created>1330037863</created><changed>1330037863</changed><tnid>0</tnid><translate>0</translate><revision_timestamp>1330037863</revision_timestamp><revision_uid>34</revision_uid><field_media_id><und is_array="true"><item><value>One HD</value><format/><safe_value>One HD</safe_value></item></und></field_media_id><field_url><und is_array="true"><item><value>https://sites.google.com/site/serviiorss/LiveFeeds_One_HD.rss </value><format/><safe_value>https://sites.google.com/site/serviiorss/LiveFeeds_One_HD.rss </safe_value></item></und></field_url><field_language/><field_cateegory><und is_array="true"><item><tid>13</tid></item></und></field_cateegory><field_region/><field_media_source><und is_array="true"><item><tid>5</tid></item></und></field_media_source><field_media_type><und is_array="true"><item><tid>15</tid></item></und></field_media_type><field_rating/><field_reliability/><field_thumbnail/><field_resolution><und is_array="true"><item><tid>25</tid></item></und></field_resolution><field_site_url><und is_array="true"><item><value>http://live.1hd.ro</value><format/><safe_value>http://live.1hd.ro</safe_value></item></und></field_site_url><field_media_description><und is_array="true"><item><value>The On-line Arts and Entertainment Network Featuring Classics, Dance, Jazz, Live, Pop and Rock Channels.</value><format/><safe_value>The On-line Arts and Entertainment Network Featuring Classics, Dance, Jazz, Live, Pop and Rock Channels.</safe_value></item></und></field_media_description><meta_abstract/><meta_keywords/><meta_description/><field_plugin_revision/><field_plugins><und is_array="true"><item><tid>53</tid></item></und></field_plugins><field_pluginname/><rdf_mapping><rdftype is_array="true"><item>sioc:Item</item><item>foaf:Document</item></rdftype><title><predicates is_array="true"><item>dc:title</item></predicates></title><created><predicates is_array="true"><item>dc:date</item><item>dc:created</item></predicates><datatype>xsd:dateTime</datatype><callback>date_iso8601</callback></created><changed><predicates is_array="true"><item>dc:modified</item></predicates><datatype>xsd:dateTime</datatype><callback>date_iso8601</callback></changed><body><predicates is_array="true"><item>content:encoded</item></predicates></body><uid><predicates is_array="true"><item>sioc:has_creator</item></predicates><type>rel</type></uid><name><predicates is_array="true"><item>foaf:name</item></predicates></name><comment_count><predicates is_array="true"><item>sioc:num_replies</item></predicates><datatype>xsd:integer</datatype></comment_count><last_activity><predicates is_array="true"><item>sioc:last_activity_date</item></predicates><datatype>xsd:dateTime</datatype><callback>date_iso8601</callback></last_activity></rdf_mapping><webform><confirmation></confirmation><confirmation_format/><redirect_url>&lt;confirmation&gt;</redirect_url><teaser>0</teaser><block>0</block><allow_draft>0</allow_draft><auto_save>0</auto_save><submit_notice>1</submit_notice><submit_text></submit_text><submit_limit>-1</submit_limit><submit_interval>-1</submit_interval><total_submit_limit>-1</total_submit_limit><total_submit_interval>-1</total_submit_interval><status>1</status><record_exists></record_exists><roles is_array="true"><item>1</item><item>2</item></roles><emails/><components/></webform><cid>0</cid><last_comment_timestamp>1330037863</last_comment_timestamp><last_comment_name/><last_comment_uid>34</last_comment_uid><comment_count>0</comment_count><name>Xmantium</name><picture>0</picture><data>a:1:{s:7:"contact";i:1;}</data></result>


If you look at the last results you will see the following
  Code:
<field_plugins><und is_array="true"><item><tid>53</tid></item></und></field_plugins>

The above tells that it is a livefeeds

  Code:
<?xml version="1.0" encoding="utf-8"?>
<result is_array="true"><item><tid>53</tid><vid>14</vid><name>LiveFeeds</name><description></description><format>php_code</format><weight>0</weight><language>und</language><i18n_tsid>0</i18n_tsid><uri>http://www.serviidb.com/rest/term/53</uri></item></result>
Last edited by moltra on Wed Feb 29, 2012 7:23 pm, edited 1 time in total.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Wed Feb 29, 2012 9:43 am

Re: serviidb.com

I'm sorry and don't wanna be rude but this is not REST...
URL should be meaningful and should link to a unique resource (which could have different representation).

In your example, this URL
  Code:
http://www.serviidb.com/rest/node/{id}.xml
is not meaningful (what is a node?) and links to either a plugin or a media:
  Code:
http://www.serviidb.com/rest/node/106.xml => give plugin info
http://www.serviidb.com/rest/node/101.xml => give media info


Concerning <tid>, I think clients shouldn't know about them, as they're for server use only.
It may be "dangerous" to expose all resource; for example what will give this url ?
  Code:
http://www.serviidb.com/rest/node/42.xml


Maybe you could adapt the REST client of the phpwebui as a server.
Furthermore you may have a look to this small php rest tutorial and some REST frameworks.
"Tonic" and "Epiphany" seem really cool and easy (my first choices, cause I don't like Zend Frameworks).

Good luck!
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Wed Feb 29, 2012 12:07 pm

Re: serviidb.com

In the content management system [url]www.drupal.org/url] This is the way they have setup REST. A node is one piece of content. I have looked at an external rest trying to use the one that is for drupal currently. What I think I need to do is edit the node_resource.inc module of drupal and customize it to return only the information that I am wanting while using better search terms.

  Code:
Version 3
Services 3.0 is now available. Read up on it here.If you want to know more about the new REST server, read here. Note that currently there is no upgrade path for Services 3, and it is not backwards compatible with older implementations of the API. Therefore some existing modules like JSON Server and AMFPHP will not work with it. Fear not, newer AMFPHP modules are in development, and REST Server and JSON Server are no longer needed because response formats have been rolled into Services Core.

Features(3.x):
Service API allow modules to create other services, including pluggable access control
Server API allow modules to create other servers, such as SOAP
Aliasing methods
Integration with core Drupal functionality like files, nodes, taxonomy, users, files and more.
Response format API allows you to define response Formats for CONTENT-TYPE ie. application/json or application/xml. (also calls such as ENDPOINT/node/1.json work)


  Code:
Project Information

Maintenance status: Actively maintained
Development status: Under active development
Reported installs: 12351 sites currently report using this module. View usage statistics.
Automated tests: Enabled
Last modified: January 20, 2012
Last edited by moltra on Wed Feb 29, 2012 12:36 pm, edited 1 time in total.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Feb 29, 2012 12:28 pm

Re: serviidb.com

Agree with kairoh. I was wondering why using Drupal... I guess it's easier to setup the forms and stuff, but will make it harder to write the API and tweek it to your needs. A php/mysql simple web app would work better in my opinion.
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Wed Feb 29, 2012 12:51 pm

Re: serviidb.com

I think the capability is there, I am currently using the basic module to return the data. I am looking at customizing the module, so it only gives back what is needed and allows a better search function. If I can change the fields returned when I do a search it will eliminate about 90% of my prior post.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Wed Feb 29, 2012 7:26 pm

Re: serviidb.com

I think I have a better clue now, I was relying on a 3rd party module to pull the data from drupal. I have now setup tonic as an external restful server and will be getting the data directly from the database, and doing all the calculations on the server so a easy clean xml will be delivered. I am going to try and have the part to get the plugin's done by tomorrow morning.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Thu Mar 01, 2012 9:49 am

Re: serviidb.com

OK I have the restful setup for retrieving the list of plugins from the database.

  Code:
http://serviidb.com/api/task/plugin


gives the basic results below. Do you guys want any certain return format? xml?

  Code:
Blip TV
CBS[code][/code]
iPlayer (UK)
4oD (UK)
YouTube
LiveFeeds
GameSpot
GameTrailers
CNN
Hulu (US)
Trailer Addict
SHOUTcast


I am still working on the rest resource to get the feeds for a plugin. What I have so far is below. I am working on getting the ability to add the plugin name as a parameter. The below resource is hard coded right now to get the 4od (UK) feeds.

  Code:
http://serviidb.com/api/task/feed


Which gives.

  Code:
Title: 4oD (UK)
Title: Coppers
Title: Big Fat Gypsy Weddings
Title: 90210
Title: Skins
Title: Shameless
Title: New Girl
Title: Desperate Housewives
Title: Homeland
Title: The Cleveland Show
Title: Hollyoaks
Title: One Born Every Minute
Title: Playing It Straight
Title: 10 O'Clock Live
Title: Come Dine With Me
Title: Daddy Daycare
Title: The Good Wife
Title: The Hotel
Title: Confessions Of A Nurse
Title: SuperScrimpers
Title: Coach Trip
Title: Amish: World's Squarest Teenagers
Title: The Inbetweeners
Title: The Big C
Title: Meet Ricky Gervais
Title: Deal Or No Deal
Title: Rules Of Engagement
Title: 8 Out Of 10 Cats
Title: Fresh Meat
Title: How To Cook Like Heston
Title: Countdown
Title: Educating Essex
Title: Location, Location, Location
Title: Phil Spencer: Secret Agent
Title: Jamies 30 Minute Meals
Title: Undercover Boss
Title: KOTV Boxing Weekly
Title: Grand Designs
Title: Embarrassing Bodies
Title: Hestons Feasts
Title: Four In A Bed
Title: The IT Crowd
Title: Dispatches
Title: Supersize VS Superskinny
Title: The Joy of Teen Sex
Title: Saving Grace
Title: Facejacker
Title: Ramsays Kitchen Nightmares USA
Title: Fonejacker



I will be adding the download link for the plugin, and the url for the feeds.
Any certain way you guys want it return format?
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Thu Mar 01, 2012 10:00 am

Re: serviidb.com

moltra wrote:gives the basic results below. Do you guys want any certain return format? xml?


I will want JSON either via a header or by adding something to the end of the URL.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

kairoh

DLNA master

Posts: 180

Joined: Sun Aug 08, 2010 10:41 am

Location: France

Post Fri Mar 02, 2012 10:58 pm

Re: serviidb.com

+1 for JSON ;)
And maybe some XML (by altruism :P ).

Tonic seems to support multiple representation via header and uri (by annotation).
Serviio WebUI console developer : New Homepage | Support | Project | Issues

Samsung UA32C6600 | WinXP / Ubuntu 11.10 | Samsung Galaxy S | Freebox v6
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Sun Mar 04, 2012 1:05 am

Re: serviidb.com

I have added a support ticket system on the site, please enter a support ticket with any new feature requests, or changes that you would like to see. I will use these tickets to keep everyone informed with my progress on the site.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
Next

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 9 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.