利用規約を取得

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

特定の利用規約を取得します。

リクエスト

application/json

パスパラメータ

stringパス内必須
324234

利用規約のID。

レスポンス

application/json利用規約

利用規約オブジェクトを返します。

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

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

リクエストの例

cURL
curl -X GET https://api.box.com/2.0/terms_of_services/324234 \
     -H 'Authorization: Bearer <ACCESS_TOKEN>'
.NET
BoxTermsOfService tos = await client.TermsOfServiceManager.GetTermsOfServicesByIdAsync("11111");
Java
BoxTermsOfService termsOfService = new BoxTermsOfService(api, "tos-id");
BoxTermsOfService.Info tosInfo = termsOfService.getInfo();
Python
terms_of_service = client.terms_of_service(tos_id='12345').get()
print('Terms of Service ID is {0} and the message is {1}'.format(terms_of_service.id, terms_of_service.text))
Node
client.termsOfService.get('12345')
	.then(tos => {
		/* tos -> {
			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
client.termsOfService.get(
    tosID: "12345"
) { (result: Result<TermsOfService, BoxSDKError>) in
    guard case let .success(termsOfService) = result else {
        print("Error getting terms of service information")
        return
    }
    print("Terms of Service with id: \(termsOfService.id) was retrieved")
}