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

notion search app without admin access #31

Merged
merged 14 commits into from
Oct 19, 2021
Merged
Show file tree
Hide file tree
Changes from 3 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
10 changes: 10 additions & 0 deletions extensions/search-notion/.eslintrc.json
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"]
}
4 changes: 4 additions & 0 deletions extensions/search-notion/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 120,
"singleQuote": false
}
43 changes: 43 additions & 0 deletions extensions/search-notion/README.md
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.

![](https://camo.githubusercontent.com/3f4f7b5cfd031dec5ac4e83252b92060d34d8d23e551813ef1e4552414094a56/68747470733a2f2f692e696d6775722e636f6d2f79746577467a452e676966)

### Get your `cookie` headers

They should look something like this

```text
intercom-id-gpfdrxfd=7fcea1e2-4f73-492f-9b38-0d5fcf02cd9a; notion_locale=...
```

![](https://github.com/wrjlewis/notion-search-alfred-workflow/raw/master/cookie.png)

### Get your `SpaceId`

It should look something like this:

```text
celcl9aa-c3l7-7504-ca19-0c985e34ll8d
```

![](https://github.com/wrjlewis/notion-search-alfred-workflow/raw/master/spaceId.png)
Binary file added extensions/search-notion/assets/command-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading