Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migrate api domain tobe aitable.ai (#7223) #122

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apitable.go/lib/common/http/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (
HTTP = "http"
HTTPS = "https"

Domain = "api.apitable.com"
Domain = "aitable.ai"
Path = "/"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*/
public class ApitableApiClient {

private static final String DEFAULT_HOST = "https://api.apitable.com";
private static final String DEFAULT_HOST = "https://aitable.ai";

private final ApiVersion apiVersion;

Expand Down
2 changes: 1 addition & 1 deletion apitable.js/apitable.browser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apitable.js/lib/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const MAX_RECORD_SIZE = 1000;
export const QPS = 5;
export const MIN_TIME_GAP = 1000 / QPS; // Maximum concurrency, 5 requests per second.
export const DST_MAX_RECORDS = 50000; // Maximum number of records in a single datasheet.
export const DEFAULT_HOST = 'https://api.apitable.com';
export const DEFAULT_HOST = 'https://aitable.ai';
export const FUSION_PATH_PREFIX = '/fusion';
export const DEFAULT_VERSION_PREFIX = '/fusion/v1';
export const DEFAULT_REQUEST_TIMEOUT = 60000;
Expand Down
4 changes: 2 additions & 2 deletions apitable.php/src/ApiTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ class ApiTable {
/**
* @param string $apiToken (required) your API token, for authentication.
* @param string $fieldKey (optional)globally specifies the key of the query and returned field. use column names by default. when value is 'id', field id will be used as the query and return. (Using id can avoid code failure caused by column name modification)
* @param string $host (optional)destination server address, default: https://api.apitable.com
* @param string $host (optional)destination server address, default: https://aitable.ai
* @param int $requestTimeout (optional)request expiration time, default 10s.
*/
public static function auth($apiToken, $host = 'https://api.apitable.com', $fieldKey = 'name', $requestTimeout = 10) {
public static function auth($apiToken, $host = 'https://aitable.ai', $fieldKey = 'name', $requestTimeout = 10) {
self::$apiToken = $apiToken;
self::$requestTimeout = $requestTimeout;
self::$host = $host;
Expand Down
2 changes: 1 addition & 1 deletion apitable.py/apitable/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
except KeyError:
MAX_WRITE_RECORDS_PRE_REQ = 10

API_BASE = "https://apitable.com"
API_BASE = "https://aitable.ai"

API_ENDPOINT_DATASHEET = "/fusion/v1/datasheets"

Expand Down
Loading