Strict Standards: Declaration of action_plugin_discussion::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/opinian/public_html/wiki/lib/plugins/discussion/action.php on line 16
Strict Standards: Declaration of action_plugin_translation::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/opinian/public_html/wiki/lib/plugins/translation/action.php on line 90
Strict Standards: Declaration of cache_instructions::retrieveCache() should be compatible with cache::retrieveCache($clean = true) in /home/opinian/public_html/wiki/inc/cache.php on line 289
Warning: Cannot modify header information - headers already sent by (output started at /home/opinian/public_html/wiki/lib/plugins/discussion/action.php:16) in /home/opinian/public_html/wiki/inc/auth.php on line 295
Warning: Cannot modify header information - headers already sent by (output started at /home/opinian/public_html/wiki/lib/plugins/discussion/action.php:16) in /home/opinian/public_html/wiki/feed.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/opinian/public_html/wiki/lib/plugins/discussion/action.php:16) in /home/opinian/public_html/wiki/feed.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /home/opinian/public_html/wiki/lib/plugins/discussion/action.php:16) in /home/opinian/public_html/wiki/feed.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/opinian/public_html/wiki/lib/plugins/discussion/action.php:16) in /home/opinian/public_html/wiki/feed.php on line 38
Warning: Cannot modify header information - headers already sent by (output started at /home/opinian/public_html/wiki/lib/plugins/discussion/action.php:16) in /home/opinian/public_html/wiki/inc/pageutils.php on line 545
Warning: Cannot modify header information - headers already sent by (output started at /home/opinian/public_html/wiki/lib/plugins/discussion/action.php:16) in /home/opinian/public_html/wiki/inc/pageutils.php on line 546 Opinian API
http://wiki.developers.opinian.com/
2010-05-22T02:40:00+02:00Opinian API
http://wiki.developers.opinian.com/
http://wiki.developers.opinian.com/lib/images/favicon.icotext/html2010-01-09T15:32:59+02:00implementing_javascript_module
http://wiki.developers.opinian.com/implementing_javascript_module?rev=1263047579&do=diff
First, you have to put Opinian Cross-domain communication messenger file on your server.
Depending on what server side programming language you use, copy appropriate file to your server (.asp, .php, ...).
Download it here [opinian_xdm_receiver]
After that, you have to include Opinian javascript library file.
The beginning of your <BODY> tag is a good place for that.text/html2009-08-24T15:44:16+02:00items.rate
http://wiki.developers.opinian.com/items.rate?rev=1251121456&do=diff
Input parameters
parameter name type description mandatory item_id number item ID yes rating_category_id number rating category ID (retrived through ”Items/get_ratings”). yes, put 0 for general rating. rating number User rating from 1-10 yes
Input example
<a onclick="Opinian.call('items.rate', {'item_id':44, 'rating_category_id':0, 'rating':5}, update_div);" href="#">6</a>text/html2009-09-04T14:33:22+02:00items_get_images
http://wiki.developers.opinian.com/items_get_images?rev=1252067602&do=diff
Get all images for specific item.
Includes main (default) image.
Returns 8 images per page.
Input parameters
parameter name type description mandatory item_id number Item's Opinian ID no (but then 'slug' and 'category_id' are) slug string Item's Opinian slug (no control characters, ”-” for spaces) must go in pair with category_id. not mandatory, but then 'item_id' is category_id number Item's Opinian category ID…text/html2009-09-04T14:32:34+02:00items_get_item
http://wiki.developers.opinian.com/items_get_item?rev=1252067554&do=diff
Input parameters
parameter name type description mandatory item_id number Item's Opinian ID no (but then 'slug' and 'category_id' are) slug string Item's Opinian slug (no control characters, ”-” for spaces) must go in pair with category_id. not mandatory, but then 'item_id' is category_id number Item's Opinian category ID must go in pair with slug. not mandatory, but then 'item_id' is
Input example
<?php
$it…text/html2009-09-04T14:32:59+02:00items_get_ratings
http://wiki.developers.opinian.com/items_get_ratings?rev=1252067579&do=diff
Input parameters
parameter name type description mandatory item_id number Item's Opinian ID no (but then 'slug' and 'category_id' are) slug string Item's Opinian slug (no control characters, ”-” for spaces) must go in pair with category_id. not mandatory, but then 'item_id' is category_id number Item's Opinian category ID must go in pair with slug. not mandatory, but then 'item_id' is language string(2) …text/html2009-09-04T14:31:44+02:00items_get_reviews
http://wiki.developers.opinian.com/items_get_reviews?rev=1252067504&do=diff
Input parameters
parameter name type description mandatory item_id number Item's Opinian ID no (but then 'slug' and 'category_id' are) slug string Item's Opinian slug (no control characters, ”-” for spaces) must go in pair with category_id. not mandatory, but then 'item_id' is category_id number Item's Opinian category ID must go in pair with slug. not mandatory, but then 'item_id' is page number …text/html2009-08-29T19:07:58+02:00php_module
http://wiki.developers.opinian.com/php_module?rev=1251565678&do=diff
ZIP compressed file [OpinianApi.php].
Just include the module in your php file, create object and call methods.
<?php
include_once "OpinianApi/OpinianApi.php";
$Opinian = new Opinian("my_api_key", "my_secret_key");
$item = $Opinian->getItem(array("id"=>1343));
if (!empty($Opinian->last_error))
echo $Opinian->last_error;
else
print_r($item);
?>text/html2009-09-02T23:52:48+02:00start
http://wiki.developers.opinian.com/start?rev=1251928368&do=diff
If you are using Opinian API to display the data on your site, you are obligated to use “Powered By Opinian” logo, and place it on the site at a position that is highly visible. This will be checked and if you don't abide by this rule, your site may be deprived of using Opinian API.text/html2009-08-29T19:11:50+02:00the_list_of_opinian_api_methods_for_data_retrieval
http://wiki.developers.opinian.com/the_list_of_opinian_api_methods_for_data_retrieval?rev=1251565910&do=diff
* ”Items/get_item” - gets general item data (including general item rating)
* ”Items/get_ratings” - gets rating categories and related ratings
* ”Items/get_images” - gets item images
* ”Items/get_reviews” - gets item reviewstext/html2009-08-24T15:52:44+02:00the_list_of_opinian_api_methods_for_user_actions
http://wiki.developers.opinian.com/the_list_of_opinian_api_methods_for_user_actions?rev=1251121964&do=diff
How to call methods
Javascript Opinian methods are called with “call” method:
<script>
Opinian.call(method_name, params, callback_function);
</script>
parameter type description method_name string Method name params array Javascript array with key => value list where key are method specific parameters callback_function function your callback function that will be called upon successful method execution
List of methods
* ”Items…