promoted ts client:一个Typescript客户端来联系Promoted API 源码
晋升客户 一个Typescript客户端,用于联系Promoted API。 创建一个PromotedClient 我们建议在单独的文件中创建一个PromotedClient,以便(1)可以在文件之间共享,并且(2)隐藏某些配置。 PromotedClient避免直接依赖某些实现细节,因此我们可以支持自定义并使二进制文件较小。 promotedClient.js import { logOnError, newPromotedClient, throwOnError } from 'promoted-ts-client'; import { v5 as uuid } from 'uuid'; import axios from 'axios'; const axiosApiClient = (url: string, apiKey: string, timeou
用户评论