package cn.com.poc.thirdparty.resource.baidu.api;

import org.apache.http.Header;
import org.apache.http.HttpHeaders;
import org.apache.http.entity.ContentType;
import org.apache.http.message.BasicHeader;

/**
 * @author alex.yao
 * @date 2023/3/6
 **/
public interface BaiduBaseApi {

    String ACCESS_TOKEN = "access_token";

    String BASE_API = "https://aip.baidubce.com/";

    Header jsonHeader = new BasicHeader(HttpHeaders.CONTENT_TYPE, ContentType.APPLICATION_JSON.toString());

    Header acceptHeader = new BasicHeader(HttpHeaders.ACCEPT, ContentType.APPLICATION_JSON.toString());

    Header formUrlEncodeHeader = new BasicHeader(HttpHeaders.CONTENT_TYPE, ContentType.APPLICATION_FORM_URLENCODED.withCharset("utf-8").toString());

    Header multipartFormDataHeader = new BasicHeader(HttpHeaders.CONTENT_TYPE, ContentType.MULTIPART_FORM_DATA.toString());
}
