Giter Club home page Giter Club logo

Comments (7)

kaiiiz avatar kaiiiz commented on August 17, 2024

There are three types of data that are pulled from Raindrop API.

  1. Collections
  2. Articles
  3. Highlights

I'm not sure which type of data you're referring to. It's better to provide the API endpoint information and corresponding JSON path to prevent ambiguity.

from obsidian-raindrop-highlights-plugin.

robertandrews avatar robertandrews commented on August 17, 2024

I'm referring to "raindrops" (ie bookmarks). Not all raindrops (bookmarks) are articles (the "type" object also supports "video", "link" and maybe more).

So, the stuff available via the /rest/v1/raindrops/{collectionId} (multiple raindrops) endpoint. I think there's a bit more available than you're pulling...

{
"excerpt": "I was on a roll two weeks ago. I had managed, somehow, to find a prolonged and sustained flow. My work felt easier and more ...",
"note": "",
"type": "article",
"cover": ["https://blog.rescuetime.com/wp-content/uploads/2019/09/Unmotivated-motivation-wave.jpg"](https://blog.rescuetime.com/wp-content/uploads/2019/09/Unmotivated-motivation-wave.jpg),
"tags": [ ],
"removed": false,
"_id": 4281XXXXX,
"title": "A beautiful life is all about maintenance - RescueTime Blog",
-"collection": {
"$ref": "collections",
"$id": 2614XXXX,
"$db": ""
},
"link": ["https://blog.rescuetime.com/a-beautiful-life-is-all-about-maintenance/"](https://blog.rescuetime.com/a-beautiful-life-is-all-about-maintenance/),
"created": "2022-08-06T16:32:50.872Z",
"lastUpdate": "2022-08-06T20:08:05.544Z",
"important": false,
-"media": [
-{
"type": "image",
"link": ["https://blog.rescuetime.com/wp-content/uploads/2019/09/Unmotivated-motivation-wave.jpg"](https://blog.rescuetime.com/wp-content/uploads/2019/09/Unmotivated-motivation-wave.jpg)
},
-{
"type": "image",
"link": ["https://i0.wp.com/blog.rescuetime.com/wp-content/uploads/2019/09/Unmotivated-motivation-wave.jpg?resize=1000%2C486&ssl=1"](https://i0.wp.com/blog.rescuetime.com/wp-content/uploads/2019/09/Unmotivated-motivation-wave.jpg?resize=1000%2C486&ssl=1)
}
],
-"user": {
"$ref": "users",
"$id": 88XXXX,
"$db": ""
},

It may also be useful to make the Collection data title available as a template tag, but that would probably require a secondary request to /rest/v1/collections/{id}

from obsidian-raindrop-highlights-plugin.

kaiiiz avatar kaiiiz commented on August 17, 2024

Yes, there are some fields that have not been pulled from the Raindrop article yet. I think it's fairly easy to add support to these fields.

The only thing I don't understand is the "note" field for each raindrop. Do you know how to add a note to a bookmark? It seems like this note field is different from the note field for highlight (annotation), and I haven't found a way to add a note to a bookmark on the Raindrop web page.

In addition, the latest collection data is saved in settings.json, so I think it's possible to support render Collection data in the template.

from obsidian-raindrop-highlights-plugin.

robertandrews avatar robertandrews commented on August 17, 2024

The only thing I don't understand is the "note" field for each raindrop. Do you know how to add a note to a bookmark? It seems like this note field is different from the note field for highlight (annotation), and I haven't found a way to add a note to a bookmark on the Raindrop web page.

Not Pro so I don’t know if that setting shows there. I can’t see any such option in the UI. And it’s not excerpt either, is it? Possible to set note on create and see if one shows anywhere, perhaps.

from obsidian-raindrop-highlights-plugin.

kaiiiz avatar kaiiiz commented on August 17, 2024

And it’s not excerpt either, is it?

Excerpt is automatically generated by Raindrop when the new bookmark is created and can be edited under the title of the edit pane.

Possible to set note on create and see if one shows anywhere, perhaps.

No, there is no note field on the interface while creating a new bookmark.

from obsidian-raindrop-highlights-plugin.

kaiiiz avatar kaiiiz commented on August 17, 2024

This feature has been implemented in the v0.0.10 release.

from obsidian-raindrop-highlights-plugin.

robertandrews avatar robertandrews commented on August 17, 2024

I see it. Speedy coding. Thanks.

from obsidian-raindrop-highlights-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.