Add Event

integer uc_feed_add(string icon , integer uid , string username , string title_template , string title_data , string body_template , string body_data , string body_general , string target_ids , array images)

Function parameters
parameter meaning
string icon Icon type, such as: thread, post, video, products, reward, debate, blog, album, comment, wall, friend
integer uid User ID
string username User name
string title_template Title Template
string title_data Title Data array
string body_template Content template
string body_data Content Data
string body_general The same data used in the event the merger: a specific array, only two: name, link, retention
string target_ids Reserved
array images Related image URL and the link address, please refer to examples of the format
Return Value
value meaning
integer Event ID

This interface function is used to add events to the UCenter Home. If the correct return event ID.
Add Event Example (PHP)

Get Event

array uc_feed_get(integer limit)

Function parameters
parameter meaning
integer limit Taking the event as number, default is 100
Return Value
value meaning
array Event list data, see the array structure Schedule

This interface function is used to extract the event. If the correct list of events is returned array.
Get event sample (PHP)

Schedule: Event List array structure

key Meaning
integer ['feedid'] Event ID
integer ['appid'] Where the application of the ID
string ['icon'] Events icon: thread, poll, reward, etc.
integer ['uid'] Events, by the user ID
string ['username'] Event issuer username
integer ['dateline'] Time, UNIX timestamp format
string ['hash_template'] Hash value of the template used to merge the same type of incident, 32-bit string, such as: c95dbd9aa75862c841b627e1e9598fd5
string ['hash_data'] Hash value of data used to merge the same type of incident, 32-bit string, such as: c95dbd9aa75862c841b627e1e9598fd5
string ['title_template'] Title Template
string ['title_data'] Title Data
string ['body_template'] Content template
string ['body_data'] Event content HTML format, use the {xxx} format character that variables such as {username}
string ['body_general'] reserve
string ['image_1'] The first picture URL
string ['image_1_link'] The first picture link URL
string ['image_2'] The 2-nd picture URL
string ['image_2_link The 2-nd picture link URL
string ['image_3'] The 3-rd picture URL
string ['image_3_link'] The 3-rd picture link URL
string ['image_4'] The 4-th picture URL
string ['image_4_link'] The 4-th picture link URL

Interface Process

Submission, access events
Interface function uc_feed_add() submit event Notice to the UCenter UCenter Home use interface function uc_feed_get() for submission of events