G
G
Golem SDK
Search…
yapapi - Python high-level API
yajsapi - JavaScript high-level API
Yagna Contributor Guide
Powered By GitBook
Class: ActivityService
yajsapi / Exports / rest/activity / ActivityService

Class: ActivityService

rest/activity.ActivityService
A convenience helper to facilitate the creation of an Activity.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ActivityService(cfg)
Parameters
Name
Type
cfg
Configuration
Defined in

Properties

_api

Private _api: RequestorControlApi
Defined in

_state

Private _state: RequestorStateApi
Defined in

Methods

_attest

_attest(activity_id, agreement, credentials): Promise
Parameters
Name
Type
activity_id
string
agreement
Agreement
credentials
Credentials
Returns
Promise
Defined in

_create_activity

_create_activity(agreement_id): Promise<Activity>
Parameters
Name
Type
agreement_id
string
Returns
Promise<Activity>
Defined in

_create_secure_activity

_create_secure_activity(agreement): Promise
Parameters
Name
Type
agreement
Agreement
Returns
Promise
Defined in

new_activity

new_activity(agreement, secure?): Promise<Activity>
Create an activity within bounds of the specified agreement.
Parameters
Name
Type
Default value
Description
agreement
Agreement
undefined
-
secure
boolean
false
-
Returns
Promise<Activity>
Activity
Defined in
Last modified 6d ago