Browse Source

Merge pull request #6395 from nocodb/fix/airtable-pat

fix: support for Airtable PAT
pull/6415/head
Raju Udava 1 year ago committed by GitHub
parent
commit
c5bd190161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nc-gui/components/dlg/AirtableImport.vue
  2. 1
      packages/nc-gui/lang/en.json
  3. 21
      packages/noco-docs/docs/030.setup-and-usages/200.import-airtable-to-sql-database-within-a-minute-for-free.md
  4. BIN
      packages/noco-docs/static/img/content/airtable-pat-1.png
  5. BIN
      packages/noco-docs/static/img/content/airtable-pat-2.png
  6. BIN
      packages/noco-docs/static/img/content/airtable-pat-3.png

2
packages/nc-gui/components/dlg/AirtableImport.vue

@ -291,7 +291,7 @@ onMounted(async () => {
<a-input-password
v-model:value="syncSource.details.apiKey"
class="nc-input-api-key"
:placeholder="$t('labels.apiKey')"
:placeholder="`${$t('labels.apiKey')} / ${$t('labels.personalAccessToken')}`"
size="large"
/>
</a-form-item>

1
packages/nc-gui/lang/en.json

@ -373,6 +373,7 @@
"customTheme": "Custom Theme",
"requestDataSource": "Request a data source you need?",
"apiKey": "API Key",
"personalAccessToken": "Personal Access Token",
"sharedBase": "Shared Base",
"importData": "Import Data",
"importSecondaryViews": "Import Secondary Views",

21
packages/noco-docs/docs/030.setup-and-usages/200.import-airtable-to-sql-database-within-a-minute-for-free.md

@ -6,19 +6,26 @@ description: 'A complete import of your Airtable to any MySQL, Postgres, SQLite
NocoDB allows a complete import of your Airtable to any MySQL, Postgres, SQLite and SQL server databases within minutes.
:::info
Import from Airtable is in beta version. See [Importing Airtable To NocoDB](https://github.com/nocodb/nocodb/discussions/2122) for the migration notes.
:::
## Get Airtable Credentials
:::info
You need to retrieve API key and Shared Base ID / URL from Airtable.
You need to have access to `API key` / `Personal Access Token` and `Shared Base ID` / `Shared Base URL` from Airtable.
:::
### Create Personal Access Token
Reference: [Airtable Personal Access Token](https://airtable.com/developers/web/guides/personal-access-tokens)
1. Go to [Airtable Create Tokens](https://airtable.com/create/tokens) page, click on `Create token` button
2. Input `Token name`
3. Select `Scopes` (`data.records:read` is required)
4. Select `Base` that you want to import
5. Click on `Create token` button
6. Copy generated `Personal Access Token`
![image](/img/content/airtable-pat-1.png)
![image](/img/content/airtable-pat-2.png)
![image](/img/content/airtable-pat-3.png)
### Retrieve API Key
- Copy your Airtable API Key from [Airtable Accounts](https://airtable.com/account) page

BIN
packages/noco-docs/static/img/content/airtable-pat-1.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

BIN
packages/noco-docs/static/img/content/airtable-pat-2.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 KiB

BIN
packages/noco-docs/static/img/content/airtable-pat-3.png vendored

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

Loading…
Cancel
Save