列出主题
获取租户上可用主题的列表。
准备工作
获取访问令牌。 参见《 管理 themesCreating 为您的应用程序创建自定义主题》。
过程
使用以下命令,获取主题列表。
curl -H "Authorization: Bearer <access_token>" https://<tenant>/v1.0/branding/themes
其中:- <tenant>
- 分配给 Verify 预订的标准域名。
- <access_token>
- 在管理 themesCreating 中为您的应用程序创建自定义主题时,您收到的访问令牌的值。
结果
{"count":3,"limit":200,"page":1,"total":3,"themeRegistrations":[{"name":"test","id":"715c117f-64b7-4232-8079-43f615f2c880"},{"name":"john","id":"b95801ed-583a-403d-b483-4f137fff8601"},{"name":"default","description":"Default Theme","id":"default"}]}示例
curl -H "Authorization: Bearer JUHn05z35P4Kd9QaCLHFEyMGEbzeCOo0faBefI9w" https://companyAppTest.verify.ibm.com/v1.0/branding/themes