Returns the current terms of service text and settings for the enterprise.
managed
Limits the results to the terms of service of the given type.
Value is one of external
,managed
Returns a collection of terms of service text and settings for the enterprise.
An unexpected client error.
curl -i -X GET "https://api.box.com/2.0/terms_of_services" \
-H "authorization: Bearer <ACCESS_TOKEN>"
await client.termsOfServices.getTermsOfService();
client.terms_of_services.get_terms_of_service()
await client.TermsOfServices.GetTermsOfServiceAsync();
try await client.termsOfServices.getTermsOfService()
List<BoxTermsOfService.Info> termsOfServices = BoxTermsOfService.getAllTermsOfServices(api);
for(BoxTermsOfService.Info termsOfServiceInfo : termsOfServices){
// Do something with the terms of service.
}
terms_of_services = client.get_terms_of_services()
for terms_of_service in terms_of_services:
print(f'Terms of Service ID is {terms_of_service.id} and the message is {terms_of_service.text}')
BoxTermsOfServiceCollection<BoxTermsOfService> termsOfService = await client.TermsOfServiceManager
.GetTermsOfServicesAsync();
client.termsOfService.getAll()
.then(termsOfService => {
/* termsOfService -> {
entries: [
total_count: 1,
{ type: 'terms_of_service',
id: '12345',
status: 'disabled',
enterprise: { type: 'enterprise', id: '55555' },
tos_type: 'managed',
text: 'By using this service, you agree to ...',
created_at: '2018-04-19T13:55:09-07:00',
modified_at: '2018-04-19T13:55:09-07:00' }
]
*/
});
let termsOfServiceItems = client.termsOfService.listForEnterprise()
print("Terms of Service with ID \(termsOfServiceItems[0].id) and Terms of Service with ID \(termsOfServiceItems[1].id) was retrieved.")
{
"entries": [
{
"id": "11446498",
"type": "terms_of_service",
"status": "enabled",
"enterprise": {
"id": "11446498",
"type": "enterprise",
"name": "Acme Inc."
},
"tos_type": "managed",
"text": "By using this service, you agree to ...",
"created_at": "2012-12-12T10:53:43-08:00",
"modified_at": "2012-12-12T10:53:43-08:00"
}
],
"total_count": 2
}