Activities Resource

Gets activity information about a particular activity.

getActivity

Gets the full definition of an activity.

Example

const activityId: string = "https://example.com/activities/test-activity";

xapi.getActivity({
  activityId: activityId
}).then((result: AxiosReponse<Activity>) => {
  const activity: Activity = result.data;
  console.log(activity);
});

Parameters

Returns

This method returns an AxiosPromise with the success data containing an Activity if successful.

Last updated