forked from raycast/extensions
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
notion search app without admin access (raycast#31)
* notion search app without api * fix typescript erros for any types * add version * updates to package.json based on suggestions from PR * update preferences to use new API * clean API and code based on PR comments * reduce history of uers to 20 * Update tsconfig.json * use camelCase name for input ts script * Add high-res icon * Revert "Update tsconfig.json" d9a17a6 * Minor copy fixes Co-authored-by: Thomas Paul Mann <[email protected]>
- Loading branch information
Showing
13 changed files
with
7,215 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"es2020": true, | ||
"node": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint"], | ||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"printWidth": 120, | ||
"singleQuote": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Notion Search Without API access token | ||
|
||
This notion extension is for people who can NOT use regular notion API if you do not have | ||
admin access to your workplace account. | ||
|
||
This is similar to the https://github.com/wrjlewis/notion-search-alfred-workflow extension for | ||
Alfred. | ||
|
||
Please follow the following guidelines to setup. | ||
|
||
## Obtaining your credentials | ||
|
||
Visit the Notion webapp and use your browser developer tools to see the network requests being made | ||
when you type in anything to the quick find search bar. | ||
|
||
Here you'll see a request called search, check the request headers to copy the cookie value and | ||
check the request payload to copy your notionSpaceId. | ||
|
||
**Known issue**: Some users have experienced issues with copying these values directly from developer | ||
tools, but have seen success by copying and pasting the values into TextEdit or a different text | ||
editor first, this probably "strips out" or removes any problematic formatting. | ||
|
||
 | ||
|
||
### Get your `cookie` headers | ||
|
||
They should look something like this | ||
|
||
```text | ||
intercom-id-gpfdrxfd=7fcea1e2-4f73-492f-9b38-0d5fcf02cd9a; notion_locale=... | ||
``` | ||
|
||
 | ||
|
||
### Get your `SpaceId` | ||
|
||
It should look something like this: | ||
|
||
```text | ||
celcl9aa-c3l7-7504-ca19-0c985e34ll8d | ||
``` | ||
|
||
 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.