Skip to content

Commit 5ea1cfa

Browse files
committed
dan comments
1 parent 76d5a75 commit 5ea1cfa

File tree

12 files changed

+34
-12
lines changed

12 files changed

+34
-12
lines changed

pages/agents/agent-object-v2.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"latitude": "51.5373258999999990",
1515
"longitude": "-0.1496343000000000",
1616
"date_created": "2020-02-18T16:13:04.193340Z",
17-
"timezone": "Europe/London"
17+
"timezone": "Europe/London",
18+
"photo": "https://secure.tutorcruncher.com/media/photo/65.jpg",
1819
"commission_rate": null,
1920
"clients": [],
2021
"last_updated": "2020-03-16T12:23:39.056867Z",

pages/agents/agent-object-v2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
### Agent Object (Version 2)
22

3-
Agent objects, Affiliates in TutorCruncher, includes basic user information including fields that are only linked to the Agent Role.
3+
Agent objects, Affiliates in TutorCruncher, includes basic user information including fields that are only linked to the Agent Role.
44
It includes details about affiliated Clients, `clients`, and their `commission_rate`.

pages/agents/agent-object-v2.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ attributes:
6161
name: timezone
6262
type: string
6363
description: The user's timezone, accepted values are timezone database values.
64+
-
65+
name: photo
66+
type: string
67+
description: The URL to the user's photo.
6468
-
6569
name: commission_rate
6670
type: string

pages/clients/client-object-v2.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"latitude": "51.5249280000000027",
1515
"longitude": "-0.0944689940000000",
1616
"date_created": "2020-01-01T12:00:00.000000Z",
17-
"timezone": null
17+
"timezone": null,
18+
"photo": "https://secure.tutorcruncher.com/media/photo/44bc4e56.jpg",
1819
"status": "live",
1920
"is_taxable": true,
2021
"received_notifications": [

pages/clients/client-object-v2.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ attributes:
6161
name: timezone
6262
type: string
6363
description: The user's timezone, accepted values are timezone database values.
64+
-
65+
name: photo
66+
type: string
67+
description: The URL to the user's photo.
6468
-
6569
name: status
6670
type: string

pages/contractors/contractor-object-v2.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"longitude": "-0.1370000000000005",
1616
"date_created": "2018-11-22T09:23:55.297608Z",
1717
"timezone": null,
18+
"photo": "https://secure.tutorcruncher.com/media/photo/44bc4e56.jpg",
1819
"status": "approved",
1920
"default_rate": null,
2021
"qualifications": [],

pages/contractors/contractor-object-v2.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ attributes:
6161
name: timezone
6262
type: string
6363
description: The user's timezone, accepted values are timezone database values.
64+
-
65+
name: photo
66+
type: string
67+
description: The URL to the user's photo.
6468
-
6569
name: status
6670
type: string
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import requests
22

33
headers = {'Authorization': 'token <API KEY>'}
4+
45
data = {
5-
'user': {
6-
'email': '[email protected]',
7-
'last_name': 'Bob',
8-
'photo': 'https://picsum.photos/200/300'
9-
# ...
10-
},
11-
# ...
6+
"id": 568433,
7+
"email": "[email protected]",
8+
"last_name": "Bob",
9+
"mobile": "07842 485 204",
10+
"photo": "https://photo_url.com/200/300"
11+
# ...
1212
}
13+
1314
requests.post('...', json=data, headers=headers)

pages/public-contractors/public-contractor-object.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ attributes:
4747
-
4848
name: photo
4949
type: string
50-
description: URL to access the Contractor's profile photo.
50+
description: URL to access the user's profile photo.
5151
-
5252
name: extra_attributes
5353
type: array

pages/recipients/recipient-object-v2.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"latitude": "51.5249280000000027",
1515
"longitude": "-0.0944689940000000",
1616
"date_created": "2019-11-24T16:11:48.312507Z",
17-
"timezone": null
17+
"timezone": null,
18+
"photo": "https://secure.tutorcruncher.com/media/photo/44bc4e56.jpg",
1819
"default_rate": null,
1920
"paying_client": {
2021
"id": 3,

0 commit comments

Comments
 (0)