generated from alecodes/base-template
fix: update readwise example to work without duplicating nodes
this is a workaround to the fact that readwise use cursor pagination instead of offset pagination, proper handling will be added later
This commit is contained in:
parent
92c9814e2a
commit
8f424d45f7
8 changed files with 42 additions and 9 deletions
|
|
@ -7,5 +7,5 @@ meta {
|
|||
get {
|
||||
url: https://readwise.io/api/v3/list/
|
||||
body: none
|
||||
auth: none
|
||||
auth: inherit
|
||||
}
|
||||
|
|
|
|||
15
examples/mock_data/Readwise/Highlights export.bru
Normal file
15
examples/mock_data/Readwise/Highlights export.bru
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
meta {
|
||||
name: Highlights export
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: https://readwise.io/api/v3/list/?withHtmlContent=true
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
withHtmlContent: true
|
||||
}
|
||||
9
examples/mock_data/Readwise/collection.bru
Normal file
9
examples/mock_data/Readwise/collection.bru
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
auth {
|
||||
mode: apikey
|
||||
}
|
||||
|
||||
auth:apikey {
|
||||
key: Authorization
|
||||
value: Token {{API_KEY}}
|
||||
placement: header
|
||||
}
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
vars:secret [
|
||||
API-KEY
|
||||
API_KEY
|
||||
]
|
||||
|
|
|
|||
Reference in a new issue