-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from Asana/openapi-sync
Generated from OpenAPI
- Loading branch information
Showing
4 changed files
with
524 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
goalsbase: | ||
addFollowers: >- | ||
import com.asana.Client; | ||
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN"); | ||
JsonElement result = client.goals.addFollowers() | ||
.data("field", "value") | ||
.data("field", "value") | ||
.option("pretty", true) | ||
.execute(); | ||
addSubgoal: >- | ||
import com.asana.Client; | ||
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN"); | ||
JsonElement result = client.goals.addSubgoal() | ||
.data("field", "value") | ||
.data("field", "value") | ||
.option("pretty", true) | ||
.execute(); | ||
addSupportingWorkForGoal: >- | ||
import com.asana.Client; | ||
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN"); | ||
JsonElement result = client.goals.addSupportingWorkForGoal() | ||
.data("field", "value") | ||
.data("field", "value") | ||
.option("pretty", true) | ||
.execute(); | ||
createGoalMetric: >- | ||
import com.asana.Client; | ||
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN"); | ||
JsonElement result = client.goals.createGoalMetric() | ||
.data("field", "value") | ||
.data("field", "value") | ||
.option("pretty", true) | ||
.execute(); | ||
deleteGoal: >- | ||
import com.asana.Client; | ||
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN"); | ||
JsonElement result = client.goals.deleteGoal(goalGid) | ||
.option("pretty", true) | ||
.execute(); | ||
getGoal: >- | ||
import com.asana.Client; | ||
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN"); | ||
JsonElement result = client.goals.getGoal(goalGid) | ||
.option("pretty", true) | ||
.execute(); | ||
getGoals: >- | ||
import com.asana.Client; | ||
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN"); | ||
List<JsonElement> result = client.goals.getGoals(workspace, team, isWorkspaceLevel, project, portfolio) | ||
.option("pretty", true) | ||
.execute(); | ||
getParentGoalsForGoal: >- | ||
import com.asana.Client; | ||
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN"); | ||
List<JsonElement> result = client.goals.getParentGoalsForGoal() | ||
.option("pretty", true) | ||
.execute(); | ||
getSubgoalsForGoal: >- | ||
import com.asana.Client; | ||
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN"); | ||
List<JsonElement> result = client.goals.getSubgoalsForGoal() | ||
.option("pretty", true) | ||
.execute(); | ||
removeFollowers: >- | ||
import com.asana.Client; | ||
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN"); | ||
JsonElement result = client.goals.removeFollowers() | ||
.data("field", "value") | ||
.data("field", "value") | ||
.option("pretty", true) | ||
.execute(); | ||
removeSubgoal: >- | ||
import com.asana.Client; | ||
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN"); | ||
JsonElement result = client.goals.removeSubgoal() | ||
.data("field", "value") | ||
.data("field", "value") | ||
.option("pretty", true) | ||
.execute(); | ||
removeSupportingWorkForGoal: >- | ||
import com.asana.Client; | ||
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN"); | ||
JsonElement result = client.goals.removeSupportingWorkForGoal() | ||
.data("field", "value") | ||
.data("field", "value") | ||
.option("pretty", true) | ||
.execute(); | ||
supportingWork: >- | ||
import com.asana.Client; | ||
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN"); | ||
List<Project> result = client.goals.supportingWork() | ||
.option("pretty", true) | ||
.execute(); | ||
updateGoal: >- | ||
import com.asana.Client; | ||
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN"); | ||
JsonElement result = client.goals.updateGoal(goalGid) | ||
.data("field", "value") | ||
.data("field", "value") | ||
.option("pretty", true) | ||
.execute(); | ||
updateGoalMetric: >- | ||
import com.asana.Client; | ||
Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN"); | ||
JsonElement result = client.goals.updateGoalMetric() | ||
.data("field", "value") | ||
.data("field", "value") | ||
.option("pretty", true) | ||
.execute(); |
Oops, something went wrong.