Array ( [action] => Array ( [id] => 3 [city_id] => 1 [address] => Šmarna gora [lat] => [lng] => [title] => Šmarna gora [lead] => Čiščenje šmarne gore [content] => Content [picture] => http://ecomania.gaj.izdelava.si/media/dsg/spacer.gif [picture_full] => http://ecomania.gaj.izdelava.si/media/dsg/spacer.gif [date_start] => 2012-01-30 02:00:00 [date_end] => 2012-01-31 15:00:00 [is_active] => 0 [category] => Šmarna gora [category_icon] => [category_picture] => [city] => [todo] => 7 [last_comment] => [comments] => 0 ) )
Array ( [action_user] => Array ( [id] => 1 [action_id] => 1 [user_id] => 1 [city_id] => 1 [address] => Letališka [street] => Letališka [lat] => [lng] => [content] => Content [picture] => http://ecomania.gaj.izdelava.si/media/dsg/spacer.gif [picture_full] => http://ecomania.gaj.izdelava.si/media/dsg/spacer.gif [date_added] => 2012-01-29 00:00:00 [action] => Eko vrečka [category] => Merkator [category_icon] => http://ecomania.gaj.izdelava.si/media/dsg/spacer.gif [category_picture] => http://ecomania.gaj.izdelava.si/media/dsg/spacer.gif [city] => [user] => $USERDATA ) )
Array ( [address] => Array ( [lat] => 14.213121 [lng] => 45.213121 [address] => Letališka cesta 33, 1000 Ljubljana, Slovenia [street] => Letališka cesta [number] => 33 [city] => Ljubljana [zip] => 1000 [country] => SI ) )
Array ( [award] => Array ( [id] => 26 [user_id] => 1 [award_id] => 5 [points] => 20 [content] => Privzeti nagradni text [date_received] => 2012-01-04 17:08:33 [is_badge] => 1 [badge] => http://ecomania.gaj.izdelava.si/media/cache/image/icon-d6daa70070035ab3.gif [title] => Točke za do 100 lokacij [mobile_content] => Mobile content[fetched] ) )
Array ( [comment] => Array ( [id] => 240 [author_id] => 1 [wall_id] => [user_id] => [problem_id] => 218 [spot_id] => [action_id] => [user_award_id] => [ecomaniac_id] => [content] => Hey [date_added] => 2012-01-29 16:48:53 [is_hidden] => [author_first_name] => Gaj [author_last_name] => C [author_picture] => 1-avatar4.png [author] => $USERDATA ) )
Array ( [message] => Array ( [id] => 6 [from_user_id] => 1 [to_user_id] => 3 [content] => Hey [date_sent] => 2012-01-29 17:06:46 [date_viewed] => [from_first_name] => Gaj [from_last_name] => C [from_picture] => 1-avatar4.png [to_first_name] => Janez [to_last_name] => Novak [to_picture] => 3-avatar3.png [from_user] => $USERDATA [to_user] => $USERDATA ) )
Array ( [problem] => Array ( [id] => 3 [city_id] => 1 [user_id] => 1 [user_fixed_id] => 1 [address] => Trg 9. maja 14A, 1000 Ljubljana, Slovenia [street] => Trg 9. maja [lat] => 46.0474839244773 [lng] => 14.5235809204102 [content] => Opis rešitve [content_fixed] => test [date_added] => 2011-12-28 14:30:00 [date_fixed] => 2012-01-04 12:47:06 [work_time] => 15 [subcategory] => Luknja [category_icon] => http://ecomania.gaj.izdelava.si/media/cache/image/icon-c68d943636ab67a3.gif [category] => Ulica / Cesta [first_name] => Gaj [last_name] => C [user_picture] => icon.gif [user_points] => 1864 [first_name_fixed] => Gaj [last_name_fixed] => C [user_fixed_picture] => icon.gif [user_fixed_points] => 1864 [picture] => http://ecomania.gaj.izdelava.si/media/cache/image/parking-340d9b47632c19e3.jpg [picture_fixed] => http://ecomania.gaj.izdelava.si/media/cache/image/3_15_kategorija_1_podkatergorija-f761fd1281ffec4e.jpg [city] => [petition] => 5 [todo] => [user] => $USERDATA [user_fixed] => $USERDATA [last_comment] => $COMMENT [comments] => 3 [picture_full] => http://ecomania.gaj.izdelava.si/media/cache/image/parking-35b13993ea54ffc5.jpg [picture_thumb] => http://ecomania.gaj.izdelava.si/media/cache/image/parking-35b13993ea54ffc5.jpg [picture_fixed_thumb] => http://ecomania.gaj.izdelava.si/media/cache/image/3_15_kategorija_1_podkatergorija-db2ae49def994a3a.jpg ) )
Array ( [spot] => Array ( [id] => 302 [city_id] => 7 [user_id] => 1 [address] => Mesarska 22 [street] => Mesarska [lat] => 46.06040949625 [lng] => 14.540232073975 [content] => test [date_added] => 2012-01-18 17:20:20 [category_icon] => http://ecomania.gaj.izdelava.si/media/cache/image/icon-63592f0dab7eb277.gif [category] => Gozd [first_name] => Gaj [last_name] => C [user_picture] => icon.gif [user_points] => 1864 [picture] => http://ecomania.gaj.izdelava.si/media/cache/image/302_597_1_gozd-184ad5a49d4f4e76.jpg [city] => Ljubljana [gallery] => Array ( [0] => Array ( [id] => 597 [spot_id] => 302 [picture] => http://ecomania.gaj.izdelava.si/media/cache/image/302_597_1_gozd-184ad5a49d4f4e76.jpg [ord] => 0 [is_hidden] => [picture_thumb] => http://ecomania.gaj.izdelava.si/media/cache/image/302_597_1_gozd-c3bee68281a743ca.jpg ) [1] => Array ( [id] => 598 [spot_id] => 302 [picture] => http://ecomania.gaj.izdelava.si/media/cache/image/302_598_2_gozd-45a55b5fb0526206.jpg [ord] => 10 [is_hidden] => [picture_thumb] => http://ecomania.gaj.izdelava.si/media/cache/image/302_598_2_gozd-8dcd61094f65dd72.jpg ) ) [tags] => Array ( [0] => Array ( [id] => 580 [spot_id] => 302 [spot_category_id] => 2 [ord] => 0 [icon] => http://ecomania.gaj.izdelava.si/media/cache/image/icon-63592f0dab7eb277.gif [title] => Jasa ) [1] => Array ( [id] => 581 [spot_id] => 302 [spot_category_id] => 5 [ord] => 10 [icon] => http://ecomania.gaj.izdelava.si/media/cache/image/icon-63592f0dab7eb277.gif [title] => Živali ) ) [user] => $USERDATA [last_comment] => $COMMENT [comments] => 3 [picture_full] => http://ecomania.gaj.izdelava.si/media/cache/image/302_597_1_gozd-c3bee68281a743ca.jpg [picture_thumb] => http://ecomania.gaj.izdelava.si/media/cache/image/302_597_1_gozd-c3bee68281a743ca.jpg ) )
Array ( [user] => Array ( [id] => 1 [city_id] => [lang_id] => sl [facebook_id] => 650289617 [first_name] => Gaj [last_name] => C [picture_full] => http://ecomania.gaj.izdelava.si/media/cache/image/icon-af3982f3cfe75e70.gif [picture] => http://ecomania.gaj.izdelava.si/media/cache/image/icon-af3982f3cfe75e70.gif [send_fb_notification] => [send_email_notification] => 1 [points] => 1864 [points_week] => 1864 [date_last_action] => 2012-01-18 17:57:24 [city] => ) )
Array ( [user] => Array ( [id] => 1 [city_id] => [lang_id] => sl [facebook_id] => 650289617 [first_name] => Gaj [last_name] => C [picture_full] => http://ecomania.gaj.izdelava.si/media/cache/image/icon-af3982f3cfe75e70.gif [picture] => http://ecomania.gaj.izdelava.si/media/cache/image/icon-af3982f3cfe75e70.gif [send_fb_notification] => [send_email_notification] => 1 [points] => 1864 [points_week] => 1864 [date_last_action] => 2012-01-18 17:57:24 [city] => [friend] => confirmed [stats] => Array ( [problems] => 148 [problems_fixed] => 9 [spots] => 50 [petitions] => 9 ) [awards] => Array ( [0] => Array ( [id] => 66 [user_id] => 1 [award_id] => 11 [points] => 12 [content] => Privzeti nagradni text [date_received] => 2012-01-18 17:29:06 [badge] => http://ecomania.gaj.izdelava.si/media/dsg/spacer.gif [title] => test ) [1] => Array ( [id] => 62 [user_id] => 1 [award_id] => 1 [points] => 100 [content] => Privzeti nagradni text [date_received] => 2012-01-18 17:19:29 [badge] => http://ecomania.gaj.izdelava.si/media/cache/image/icon-d6daa70070035ab3.gif [title] => Badge za prvi problem ) [2] => Array ( [id] => 52 [user_id] => 1 [award_id] => 14 [points] => 0 [content] => Privzeti nagradni text [date_received] => 2012-01-16 10:56:24 [badge] => [title] => 5 na dan ) ) [last_action] => Array ( [problem] => Array ( [id] => 204 [city_id] => 7 [user_id] => 1 [user_fixed_id] => [address] => Mesarska 22 [street] => Mesarska [lat] => 46.06040949625 [lng] => 14.540232073975 [content] => test [content_fixed] => [date_added] => 2012-01-18 17:57:24 [date_fixed] => [work_time] => [subcategory] => Luknja [category_icon] => http://ecomania.gaj.izdelava.si/media/cache/image/icon-c68d943636ab67a3.gif [category] => Ulica / Cesta [first_name] => Gaj [last_name] => C [user_picture] => icon.gif [user_points] => 1864 [first_name_fixed] => [last_name_fixed] => [user_fixed_picture] => [user_fixed_points] => [picture] => http://ecomania.gaj.izdelava.si/media/cache/image/204_213__cesta_luknja-a54b307334cb56ee.jpg [picture_fixed] => [city] => Ljubljana [petition] => [todo] => [picture_thumb] => http://ecomania.gaj.izdelava.si/media/cache/image/204_213__cesta_luknja-5aa81d20caaef43a.jpg ) ) ) )
Array ( [users] => Array ( [0] => Array ( [id] => 1 [city_id] => [lang_id] => sl [facebook_id] => 650289617 [first_name] => Gaj [last_name] => C [picture_full] => http://ecomania.gaj.izdelava.si/media/cache/image/icon-af3982f3cfe75e70.gif [picture] => http://ecomania.gaj.izdelava.si/media/cache/image/icon-af3982f3cfe75e70.gif [send_fb_notification] => [send_email_notification] => 1 [points] => 1864 [points_week] => 1864 [date_last_action] => 2012-01-18 17:57:24 [city] => [friend] => pending [last_action] => Array ( [log] => Array ( [id] => 325 [user_id] => 1 [user_action] => problem_add [content_id] => 265 [date_added] => 2012-01-18 17:57:24 ) [problem] => Array ( [id] => 204 [city_id] => 7 [user_id] => 1 [user_fixed_id] => [address] => Mesarska 22 [street] => Mesarska [lat] => 46.06040949625 [lng] => 14.540232073975 [content] => test [content_fixed] => [date_added] => 2012-01-18 17:57:24 [date_fixed] => [work_time] => [subcategory] => Luknja [category_icon] => http://ecomania.gaj.izdelava.si/media/cache/image/icon-c68d943636ab67a3.gif [category] => Ulica / Cesta [first_name] => Gaj [last_name] => C [user_picture] => icon.gif [user_points] => 1864 [first_name_fixed] => [last_name_fixed] => [user_fixed_picture] => [user_fixed_points] => [picture] => http://ecomania.gaj.izdelava.si/media/cache/image/204_213__cesta_luknja-a54b307334cb56ee.jpg [picture_fixed] => [city] => Ljubljana [petition] => [todo] => [picture_thumb] => http://ecomania.gaj.izdelava.si/media/cache/image/204_213__cesta_luknja-5aa81d20caaef43a.jpg ) ) ) ...
/** * Test data transfer (raw POST JSON package) * * @return object **/
/** * Upload base64 encoded image * * @return object [url] **/
/** * Get Mobile settings * * @return object [settings] */
/** * Get avaliable languages * * @return object [lang] */
/** * Get Mobile dictionary (multilingual) * * @return object [dictionary] */
/** * Get cities * * @param criteria[country_id] - SI = Slovenia * * @return object [cities] */
/** * Get alerts * * @return object [alerts] */
/** * Get banner with random rotation * * @return object [banner] */
/** * Get awards index * * @return object [awards] */
/** * Get address * * @return object [address] */
/** * Connect facebook user * * @return object [user] */
/** * Get user data * * @param $userId - current user * @param $userDataId - requested user * * @return object [user] */
/** * Update user data * * @param $data[lang_id] - [sl,en] * @param $data[send_fb_notification] - TRUE/FALSE * @param $data[send_email_notification] - TRUE/FALSE * @param $data[address] - address object * * @return object [result] */
/** * Get users by criteria * * @param criteria[is_friend] - [confirmed,pending,waiting,FALSE] * @param criteria[action_id] - users who have action on todo * @param criteria[sort] - [first_name,last_name,points,points_week,date_last_action] * * @return object [users,pages] */
/** * Get notifications * * @param $count - TRUE/FALSE * @return object [notifications] */
/** * Get common friends * * @param $userId - current user * @param $commonUserId - user with common friends * * @return object [users] */
/** * Add friend * * @return object [result] */
/** * Confirm friend request * * @return object [result] */
/** * Cancel friend or friend request * * @return object [result] */
/** * Get messages * * @param $criteria[with_user_id] - get all messages with certain user * @param $criteria[is_viewed] - TRUE/FALSE * * @return object [messages] */
/** * Add/send message to user * * @return object [result] */
/** * Mark message as viewed * * @return object [result] */
/** * Publish message on facebook * * @param $type - [problem_add,problem_fix,problem_fix_friends,spot_add,action_user] * * @return object [result] */
/** * Get wall comments * * @param criteria[author_id] - all posts by user * @param criteria[user_id] - user wall * @param criteria[problem_id] - problem wall * @param criteria[spot_id] - spot wall * @param criteria[action_id] - action wall * @param criteria[action_user_id] - action user wall * * @return object [comments,pages] */
/** * Add/publish wall comment * * @param $type - [wall,user,problem,spot,action,action_user] * * @return object [result] */
/** * Get problem categories * * @return object [categories] */
/** * Get problem subcategories * * @return object [categories] */
/** * Get problem * * @return object [problem] */
/** * Get problems by criteria * * @param criteria[user_id] - get all problems added by user * @param criteria[user_fixed_id] - get all problems fixed by user * @param criteria[city_id] - get all problems from a city * @param criteria[distance] - max distance from user's location (km) * @param criteria[lat] - user's latitude * @param criteria[lng] - user's longitude * @param criteria[is_fixed] - TRUE/FALSE * @param criteria[is_petition] - TRUE/FALSE * @param criteria[is_todo] - TRUE/FALSE * * @return object [problems,pages] */
/** * Add new problem * * @return object [problem,award] */
/** * Fix problem * * @return object [problem,award] */
/** * Add problem petition * * @return object [result] */
/** * Add user todo * * @param $type - [problem,action] * @return object [result] */
/** * Get spot categories * * @return object [categories] */
/** * Get spot subcategories * * @return object [categories] */
/** * Get spot * * @return object [spot] */
/** * Get spots by criteria * * @param criteria[user_id] - get all spots added by user * @param criteria[city_id] - get all spots from a city * @param criteria[distance] - max distance from user's location (km) * @param criteria[lat] - user's latitude * @param criteria[lng] - user's longitude * * @return object [spots,pages] */
/** * Add new spot * * @return object [spot,award] */
/** * Get action categories * * @return object [categories] */
/** * Get action * * @return object [action] */
/** * Get actions by criteria * * @param criteria[category_id] - get all actions by category * @param criteria[city_id] - get all actions from a city * @param criteria[distance] - max distance from user's location (km) * @param criteria[lat] - user's latitude * @param criteria[lng] - user's longitude * @param criteria[is_todo] - TRUE/FALSE * * @return object [actions,pages] */
/** * Get action user * * @return object [action_user] */
/** * Get action users by criteria * * @param criteria[action_id] - get all users by action * @param criteria[category_id] - get all action users by category * @param criteria[city_id] - get all action users from a city * @param criteria[distance] - max distance from user's location (km) * @param criteria[lat] - user's latitude * @param criteria[lng] - user's longitude * * @return object [action_users,pages] */
/** * Add new action user * * @return object [action_user,award] */