Includes a team object, installer user object and a list of users on the team. Also included is the client secret to verify installation for authenticity. Respond with a status of 200 to verify installation. Note: Not returning a 200 means the app will not be installed on a team.
{
"type": "team",
"team": {
team_id: "12345522-1234-40c9-a5fa-c8c73c343848",
user_id: "42352522-e1fa-415a-99be-87de26a6e5ea",
team: {
num_members: 41,
name: "Test Team",
color: "hot-pink",
created_at: 1346375759.491,
updated_at: 1377905389.648,
team_id: "12345522-1234-40c9-a5fa-c8c73c343848",
active: true,
id: "12345522-1234-40c9-a5fa-c8c73c343848",
icon: "dog"
},
userid: "31229222-e1fa-415a-99be-87de26a6e5ea"
},
"installer" : {
"first_name": "Test",
"last_name": "User",
"relationship": 0,
"title": "Director of Delta Squad",
"image": {
"default": "https://geplatform.s3.amazonaws.com/user/00266452-e1fa-415a-99be-87de26a6e5ea/35a59f8b-bf9b-4d2f-a8a5-17c35aa6e805-default.jpg",
"original": "https://geplatform.s3.amazonaws.com/user/00266452-e1fa-415a-99be-87de26a6e5ea/35a59f8b-bf9b-4d2f-a8a5-17c35aa6e805-original.jpg",
"fullwidth": "https://geplatform.s3.amazonaws.com/user/00266452-e1fa-415a-99be-87de26a6e5ea/35a59f8b-bf9b-4d2f-a8a5-17c35aa6e805-fullwidth.jpg",
"square300": "https://geplatform.s3.amazonaws.com/user/00266452-e1fa-415a-99be-87de26a6e5ea/35a59f8b-bf9b-4d2f-a8a5-17c35aa6e805-square300.jpg",
"icon": "https://geplatform.s3.amazonaws.com/user/00266452-e1fa-415a-99be-87de26a6e5ea/35a59f8b-bf9b-4d2f-a8a5-17c35aa6e805-icon.jpg"
},
"online": true,
"id": "23425252-e1fa-415a-99be-87de26a6e5ea",
"email": "test@shift.com"
},
"users": [
{
"first_name": "Blake",
"last_name": "Eggleston",
"relationship": 0,
"title": "Director of Delta Squad",
"image": {
"default": "https://geplatform.s3.amazonaws.com/user/00266452-e1fa-415a-99be-87de26a6e5ea/35a59f8b-bf9b-4d2f-a8a5-17c35aa6e805-default.jpg",
"original": "https://geplatform.s3.amazonaws.com/user/00266452-e1fa-415a-99be-87de26a6e5ea/35a59f8b-bf9b-4d2f-a8a5-17c35aa6e805-original.jpg",
"fullwidth": "https://geplatform.s3.amazonaws.com/user/00266452-e1fa-415a-99be-87de26a6e5ea/35a59f8b-bf9b-4d2f-a8a5-17c35aa6e805-fullwidth.jpg",
"square300": "https://geplatform.s3.amazonaws.com/user/00266452-e1fa-415a-99be-87de26a6e5ea/35a59f8b-bf9b-4d2f-a8a5-17c35aa6e805-square300.jpg",
"icon": "https://geplatform.s3.amazonaws.com/user/00266452-e1fa-415a-99be-87de26a6e5ea/35a59f8b-bf9b-4d2f-a8a5-17c35aa6e805-icon.jpg"
},
"online": true,
"id": "325235222-e1fa-415a-99be-87de26a6e5ea",
"email": "test@shift.com"
}
],
"client_secret": "00266452-e1fa-415a-99be-87de26a6e567"
}
Call when an application is uninstalled from a team. The team object and client secret are included. App will be uninstalled regardless of response type. For consistency respond with a 200.
{
"type": "team",
"team": {
num_members: 41,
name: "Cool Team",
color: "hot-pink",
created_at: 1346375759.491,
updated_at: 1377905389.648,
team_id: "1135e3c1-427d-40c9-a5fa-c8c73c343848",
active: true,
id: "1135e3c1-427d-40c9-a5fa-c8c73c343848",
icon: "dog"
},
"client_secret": "00266452-e1fa-415a-99be-87de26a6e567"
}