* @return new Request object o create a new activity for the
* current viewer
* @see Activity
*/
public static Request createActivity(Activity activity) {
Request request = new Request(restTemplate, "activities.create", "POST");
request.setSelector(SELF);
request.setAppId(APP);
request.setGuid(ME);
// Add RPC payload parameters
Map activityParameter = new HashMap();
activityParameter.put("body", activity.getBody());
activityParameter.put("title", activity.getTitle());
request.addRpcPayloadParameter("activity", activityParameter);
// Add REST payload parameters
request.addRestPayloadParameters(activity);
return request;
}