Skip to content

Commit

Permalink
Merge pull request #307 from AmericaSCORESBayArea/290-coach-to-do-list2
Browse files Browse the repository at this point in the history
Tasks and Tags: some starter methods
  • Loading branch information
AleksandrMolchagin authored Nov 26, 2024
2 parents 3d5f0e6 + 4ed39f5 commit 1b8a602
Show file tree
Hide file tree
Showing 4 changed files with 645 additions and 8 deletions.
198 changes: 192 additions & 6 deletions docs/Scores - Salesforce Data API.postman_collection.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info": {
"_postman_id": "efa5ea10-0550-4f96-a0f9-9a20028f5524",
"_postman_id": "3b1bae7a-292c-438d-8084-814f04f11545",
"name": "Scores - Salesforce Data API",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "34720049"
Expand Down Expand Up @@ -558,6 +558,9 @@
},
{
"name": "/contacts",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
Expand All @@ -570,13 +573,32 @@
"value": "{{sandbox_client_secret}}"
}
],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/contacts",
"raw": "{{base_url_s}}/contacts?firstName=A&lastName=3",
"host": [
"{{base_url}}"
"{{base_url_s}}"
],
"path": [
"contacts"
],
"query": [
{
"key": "firstName",
"value": "A"
},
{
"key": "lastName",
"value": "3"
}
]
},
"description": "BODY/JSON:\n\n{ \n\"TeamSeasonName\": \"\", \n\"TeamId\": \"\", \n\"SeasonId\": \"\", \n\"SchoolSite\": \"\", \n\"Partnership\": \"\", \n\"TotalNoOfPlayers\": 0, \n\"TotalNoOfSessions\": 0, \n\"SeasonStartDate\": \"\", \n\"SeasonEndDate\": \"\", \n\"CoachSoccer\": \"\", \n\"CoachWriting\": \"\", \n\"ProgramCoordinator\": \"\", \n\"ProgramManager\": \"\" \n}"
Expand Down Expand Up @@ -632,9 +654,9 @@
}
],
"url": {
"raw": "{{base_url}}/contacts/searchByPhoneNumber?phoneNumber=269",
"raw": "{{base_url_s}}/contacts/searchByPhoneNumber?phoneNumber=65032071320",
"host": [
"{{base_url}}"
"{{base_url_s}}"
],
"path": [
"contacts",
Expand All @@ -643,7 +665,7 @@
"query": [
{
"key": "phoneNumber",
"value": "269"
"value": "65032071320"
}
]
},
Expand Down Expand Up @@ -1589,6 +1611,170 @@
"response": []
}
]
},
{
"name": "tasks",
"item": [
{
"name": "/tasks",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "client_id",
"value": "{{sandbox_client_id}}"
},
{
"key": "client_secret",
"value": "{{sandbox_client_secret}}"
}
],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/tasks?contactId=003cX000008IZnXQAW",
"host": [
"{{base_url}}"
],
"path": [
"tasks"
],
"query": [
{
"key": "contactId",
"value": "003cX000008IZnXQAW"
}
]
},
"description": "BODY/JSON:\n\n{ \n\"TeamSeasonName\": \"\", \n\"TeamId\": \"\", \n\"SeasonId\": \"\", \n\"SchoolSite\": \"\", \n\"Partnership\": \"\", \n\"TotalNoOfPlayers\": 0, \n\"TotalNoOfSessions\": 0, \n\"SeasonStartDate\": \"\", \n\"SeasonEndDate\": \"\", \n\"CoachSoccer\": \"\", \n\"CoachWriting\": \"\", \n\"ProgramCoordinator\": \"\", \n\"ProgramManager\": \"\" \n}"
},
"response": []
},
{
"name": "/tasks",
"request": {
"method": "POST",
"header": [
{
"key": "client_id",
"value": "{{sandbox_client_id}}"
},
{
"key": "client_secret",
"value": "{{sandbox_client_secret}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"AssignedBy\": \"\",\n \"AssignedTo\": \"003cX000008IZnXQAW\",\n \"CreatedByContact\": \"0051T000009eHfvQAE\",\n \"CreatedContact\": \"\",\n \"Description\": \"This is a test of the POST method #2.\",\n \"DueDate\": \"2020-11-03\",\n \"LastModifiedBy\": \"0051T000009eHfvQAE\",\n \"LastModifiedContact\": \"\",\n \"OwnerId\": \"0051T000009eHfvQAE\",\n \"Priority\": 90.2,\n \"ResourceLink\": \"\",\n \"Session\": \"\",\n \"Name\": \"Third task to do!\",\n \"TaskStatus\": \"Complete\",\n \"TaskType\": \"HR Requirement\" \n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/tasks",
"host": [
"{{base_url}}"
],
"path": [
"tasks"
]
},
"description": "BODY/JSON:\n\n{ \n\"TeamSeasonName\": \"\", \n\"TeamId\": \"\", \n\"SeasonId\": \"\", \n\"SchoolSite\": \"\", \n\"Partnership\": \"\", \n\"TotalNoOfPlayers\": 0, \n\"TotalNoOfSessions\": 0, \n\"SeasonStartDate\": \"\", \n\"SeasonEndDate\": \"\", \n\"CoachSoccer\": \"\", \n\"CoachWriting\": \"\", \n\"ProgramCoordinator\": \"\", \n\"ProgramManager\": \"\" \n}"
},
"response": []
},
{
"name": "/tasks/{taskId}",
"request": {
"method": "PATCH",
"header": [
{
"key": "client_id",
"value": "{{sandbox_client_id}}"
},
{
"key": "client_secret",
"value": "{{sandbox_client_secret}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"AssignedBy\": \"\",\n \"AssignedTo\": \"003cX000008IZnXQAW\",\n \"CreatedByContact\": \"0051T000009eHfvQAE\",\n \"CreatedContact\": \"\",\n \"Description\": \"This is a test of the POST method #2.\",\n \"DueDate\": \"2020-11-03\",\n \"LastModifiedBy\": \"0051T000009eHfvQAE\",\n \"LastModifiedContact\": \"\",\n \"OwnerId\": \"0051T000009eHfvQAE\",\n \"Priority\": 90.2,\n \"ResourceLink\": \"\",\n \"Session\": \"\",\n \"Name\": \"Third task to do!!\",\n \"TaskStatus\": \"Complete\",\n \"TaskType\": \"HR Requirement\" \n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/tasks/a40cX000000GcR7QAK",
"host": [
"{{base_url}}"
],
"path": [
"tasks",
"a40cX000000GcR7QAK"
]
},
"description": "BODY/JSON:\n\n{ \n\"TeamSeasonName\": \"\", \n\"TeamId\": \"\", \n\"SeasonId\": \"\", \n\"SchoolSite\": \"\", \n\"Partnership\": \"\", \n\"TotalNoOfPlayers\": 0, \n\"TotalNoOfSessions\": 0, \n\"SeasonStartDate\": \"\", \n\"SeasonEndDate\": \"\", \n\"CoachSoccer\": \"\", \n\"CoachWriting\": \"\", \n\"ProgramCoordinator\": \"\", \n\"ProgramManager\": \"\" \n}"
},
"response": []
},
{
"name": "/tasks/{taskId}/tags",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "client_id",
"value": "{{sandbox_client_id}}"
},
{
"key": "client_secret",
"value": "{{sandbox_client_secret}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"contactId\": \"003U8000008Mz3RIAS\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{base_url}}/tasks/a40cX000000GVRFQA4/tags",
"host": [
"{{base_url}}"
],
"path": [
"tasks",
"a40cX000000GVRFQA4",
"tags"
]
},
"description": "BODY/JSON:\n\n{ \n\"TeamSeasonName\": \"\", \n\"TeamId\": \"\", \n\"SeasonId\": \"\", \n\"SchoolSite\": \"\", \n\"Partnership\": \"\", \n\"TotalNoOfPlayers\": 0, \n\"TotalNoOfSessions\": 0, \n\"SeasonStartDate\": \"\", \n\"SeasonEndDate\": \"\", \n\"CoachSoccer\": \"\", \n\"CoachWriting\": \"\", \n\"ProgramCoordinator\": \"\", \n\"ProgramManager\": \"\" \n}"
},
"response": []
}
]
}
],
"event": [
Expand Down
Loading

0 comments on commit 1b8a602

Please sign in to comment.