How to use "inbox" feature?

This post was last updated for 374 days ago, and the information may already be changed

As a lifetime user, how do I use the Inbox feature? The instructions in the user guide are very superficial. It only talks about API, where to find it, but it doesn't show how to use it. Thank you.

    Welcome to here!

    Here we can learn from each other how to use SiYuan, give feedback and suggestions, and build SiYuan together.

    Signup About
    Please input reply content ...
    • Basti
      VIP Warrior

      Based on iOS Share Sheet Shortcut I created another Shortcut to send Text (only) to the SiYuan Inbox. You need to edit the Shortcut and change "token xxx" to your Inbox-Token. This is just an example, as I am not very good with using Shortcuts. But it should get you started.

      1 Reply
    • MiscReply
    • DoctorJames
      VIP Warrior

      You are really nice but my level of knowledge si by far smaller, thanks a lot , what I need is for example how to set up reader app for example.

    • Basti
      VIP Warrior

      I think I had to allow Shortcuts to send to a website. However I get messages to the Inbox from the iPhone. Also note, that it only takes Text-Messages. Sharing other data will not work.

      Did you change the token? It is silently failing for me with the wrong token.

      The Shortcut is very limited. For debugging you could change the Shortcut to show the results. Which gives you an indication of what might be wrong. But this is my first Shortcut ever created, so no idea if something is wrong...

    • Basti 1
      VIP Warrior

      Sending to the SiYuan-Inbox is quiet easy from a small script. I have an example for ruby here...

      You need to change "token xxx"

      require 'net/http'
      require 'json'
      
      uri = URI('https://liuyun.io/apis/siyuan/inbox/addCloudShorthand')
      req = Net::HTTP::Post.new(uri)
      req.body = JSON.dump({
        title: Time.now.strftime('%Y-%m-%d'),
        content: 'Hello from Ruby'
      })
      req['Content-Type'] = 'application/json'
      req['Authorization'] = 'token xxx'
      
      res = Net::HTTP.start(uri.hostname, uri.port, :use_ssl => true) do |http|
        http.request(req)
      end
      
      case res
      when Net::HTTPSuccess, Net::HTTPRedirection
        puts 'DONE'
      else
        puts 'FAILED'
        puts res.value
      end
      
    • Visit all replies