Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
wojing committed Oct 9, 2023
1 parent b859f5c commit 4ab029e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
# memos.popclipext
a popclip extension for memos
A PopClip extension for Memos.

## USAGE
1. Download the zip file and rename it to end with '.popclipext'.
2. Double-click the package to install it.
3. Set your website and access token.
4. That's it, you're ready to go.

## License
This project is licensed under the terms of the MIT license. See [LICENSE](https://opensource.org/license/mit/) for more detail.

8 changes: 0 additions & 8 deletions memos.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
// memos.js


const query = popclip.input.text

const access_token = popclip.options.access_token

const url = popclip.options.site

// // curl -X POST https://memos.wojin.eu.org/api/v1/memo \
// // -H "Accept: application/json" \
// // -H "Authorization: Bearer {YOUR_ACCESS_TOKEN}"
// // -d '{'content': 'Hello World!'}'

const axios = require('axios');

const headers = {
Expand All @@ -31,5 +25,3 @@ axios.post(url, data, {headers})
console.log(err);
});


//https://www.popclip.app/dev/config#the-options-array

0 comments on commit 4ab029e

Please sign in to comment.