利用規約のリストを取得

get
https://api.box.com/2.0
/terms_of_services

会社の現在の利用規約のテキストと設定を返します。

リクエスト

application/json

クエリパラメータ

stringクエリ内省略可能
managed

指定したタイプの利用規約のみに結果を絞り込みます。

次の値のいずれか1つ: external,managed

レスポンス

application/json利用規約

会社の利用規約のテキストおよび設定のコレクションを 返します。

予期しないクライアントエラー。

get
利用規約のリストを取得
このドキュメント内で一部のAPIを試せるようになりました。
ログイン

リクエストの例

cURL
curl -X GET https://api.box.com/2.0/terms_of_services \
     -H 'Authorization: Bearer <ACCESS_TOKEN>'
.NET
BoxTermsOfServiceCollection<BoxTermsOfService> termsOfService = await client.TermsOfServiceManager
    .GetTermsOfServicesAsync();
Java
List<BoxTermsOfService.Info> termsOfServices = BoxTermsOfService.getAllTermsOfServices(api);
for(BoxTermsOfService.Info termsOfServiceInfo : termsOfServices){
    // Do something with the terms of service.
}
Python
terms_of_services = client.get_terms_of_services()
for terms_of_service in terms_of_services:
    print('Terms of Service ID is {0} and the message is {1}'.format(terms_of_service.id, terms_of_service.text))
Node
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' }
			]
		*/
	});
iOS
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.")