View Single Post
  #3 (permalink)  
Old 04-18-2008, 11:58 AM
dman_2007
Guest
 
Posts: n/a
Default

Now lets see what each of the function does :

1) insertItem

This function is used for inserting new item entry. First parameter passed is an authenticated http client obtained by using getClientLoginHttpClient function. Second parameter is an array called itemInfo which contains item entry info. Following elements are required to be present in itemInfo array : title, content, contentType, itemType and itemTypeType. Other useful array element is attributes element. attributes array element is an array itself containing list of attributes which is to be added in the item entry. Each element in attributes array with attribute name as key represent an attribute which is to be added and is an array itself. The attribute array contains two elements attribute_value and attribute_type. You can also specify media attchments by using media_attachments key in itemInfo array. Array element with media_attachments key is an array itself,w ith each of its element representing a separate attachment. Each attachment array element is an array itself, with file_path and file_type array elements. Final parameter is an indicator which indicates whether to actually perform the the operation or not.

2) listAllMyItems

This function is used for getting list of all the item entries currently prsent in a user's item feed. Only parameter passed to this function is an authenticated http client.

3) updateItem

This function used for updating any current item entry. itemUrl parameter is the url of the item entry to be updated and newItemInfo parameter contains the updated item entry info.

4) deleteItem

This function is used for deleting a currently existing item entry. itemUrl parameter specifes the current url of the item which is to be deleted.
Reply With Quote