Remove Custom Meta Data

From KickApps Documentation

Jump to: navigation, search

Contents

Overview

Custom Meta Data allows you to store variable quantities of meta data (name-value pairs)in reference to media and user objects within the KickApps data storage system. These name-value pairs can be used to filter feed results as well as retrieved for specific media item or user. You can also retrieve all name-value pairs added by a user on a media or user.

Your request will look something like this:

http://api.kickapps.com/rest/media/meta/remove/{mediaType}/{mediaId}/{as}

Parameters

  • mediaType. String. The media Type of the media item from which name-value pairs are to be removed. Supported media types photo,blog,emedia(externalMedia),video,audio,and user.
  • mediaId. Integer. The media id of the media from which name-value pairs are to be removed.
  • as. Integer. Your communities affiliate site id. Every community has a unique affiliate site id.

Post Parameters

  • t. String. Required. Your access permissions.
  • callback. String. Optional. The name of your JavaScript callback function.
  • clientIP. String. Optional. Use the clientIP parameter to pass the IP address of the user making the call. If the IP has been blocked by the webmaster under the Affiliate Center -> Manage Members section, an error message will be returned starting with "status":"-1","error":"This IP address has been banned".
  • name. String. Needs to use meta-name only and not name-value pair
If name is not provided then all meta data for the media item will be removed.
  • userId. Integer. Optional. If “userId” is provided the the limit will apply remove to only those meta items related to that userId or said differently will only remove those meta items added by the user whose userId was provided.
  • url. Required only when media type is emedia.

Payload

On success, a return that begins with "status":"1","message":"Meta data removed successfully.".

On failiure, a return that begins with "status":"-1","INFO":"User does not belong to affiliate Site.". {"payload_type":"json","status":1,"results":"","error":""}

or "status":"-1","INFO":"There is some problem with your information.". {"payload_type":"json","status":1,"results":"","error":"You need to enter url for the call. "}

or "status":"-1","INFO":"There is some problem with your information.". {"payload_type":"json","status":1,"results":"","error":"There is no data to remove for the requested media."}

or "status":"-1","INFO":"Only webmaster and editor can remove the metadata". {"payload_type":"json","status":1,"results":"","error":"User cannot remove any metadata."}

Permissions

Overview

KIT Cloud Social API call that lets you post activities done outside the community into the community activity feeds for members.

Your request will look something like the following:

http://api.kickapps.com/rest/kickconnect/{memberId}/{as} 

Parameters

As shown above, your call will include the following parameters:

  • memberId. The id of the user for who the update is being made.
  • as. The site Id to search. as is unique for each of the affiliate's sites.

Post Parameters

  • t. String. Required. Your access permissions.
  • callback. String. Optional. The name of your JavaScript callback function.
  • clientIP. String. Optional. Use the clientIP parameter to pass the IP address of the user making the call. If the IP has been blocked by the webmaster under the Affiliate Center -> Manage Members section, an error message will be returned starting with "status":"-1","error":"This IP address has been banned".
  • storyContent. Required. Accepts HTML and text. Allows 5,000 characters. Be sure to urlEncode the string that you pass for this variable.
  • storyIcon. Optional. url of the image to be associated with the story. Recommended size is 16 X 16.
  • postedFromSource. Optional. This is the name of the service from which the activity is being posted from. Allows 200 characters.
  • postToGroups. Optional. Should accept comma separated groupID's. Should only post to a group if the user is a member of that group.

JSON Payload

  • On success, the call will return "status":"1","message":"Story published successfully."
  • On failure, the call will return "status":"-1","message":"Story could not be published. Please make sure that the provided information is accurate."
  • If the user doesn't belong to the group(s) return, "status":"-1","message":"Story could not be published. Please make sure that the member belongs to the group(s)."

Permissions

List of Kit Cloud Social API Calls


Note: Occasionally (and without advanced warning) we modify our API calls by adding new parameters in the response payload. Please keep this in mind when designing your strategy for parsing our responses.