views:

8

answers:

0

Does anybody know how to add templateParams to an Activity instance while creating activities with opensocial-java-client.

My code is here:

Activity  activity=new Activity();
activity.setTitleId("<titleId goes here>");
activity.setBodyId("<bodyId goes here>");
Request request = ActivitiesService.createActivity(activity);
Response response = client.send(request);

I cant add templateParams to the activity.
Becouse, there is no such activity.setTemplateParams(params)