# 多语言调用示例
以下示例演示如何先获取 access_token,再携带 Authorization: Bearer {access_token} 调用数据业务接口。
示例中的业务接口使用公司列表接口:
https://openapi.itjuzi.com/company/get_company_list_v2
请将示例中的 YOUR_APPID、YOUR_APPKEY 替换为实际分配的 appid 和 appkey。
curl -X POST 'https://openapi.itjuzi.com/oauth2.0/get_access_token' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'appid=YOUR_APPID' \
-d 'appkey=YOUR_APPKEY' \
-d 'granttype=client_credentials'
curl -G 'https://openapi.itjuzi.com/company/get_company_list_v2' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--data-urlencode 'com_name=蘑菇街' \
--data-urlencode 'page=1' \
--data-urlencode 'limit=20'