Forum Discussion

santosh_csc's avatar
8 years ago

Get bookmarks of other users using API

I have to fetch all the bookmarks in the system.

 

Using V1: http://community.lithium.com/restapi/vc/users/id/30/subscriptions/?restapi.response_format=json

Using LiQL: select * from bookmarks

Above both method returning the bookmarks of logged-in user only not all the bookmarks even though the logged-in user is Admin in the community.

 

How to get the bookmarks created by all the users in the system?

  • I can get the bookmarks for other users, when I am logged in as an Admin user:

    {{prod}}/api/2.0/search?q=select * from bookmarks where subscriber.id = '5752'

    Why do I need quotes around an integer ID?

     

      • VarunGrazitti's avatar
        VarunGrazitti
        Boss

        santosh_csc - No, the API call only supports /global/ or /user/self parameters, and not the /user/id/[user id], which means, you cannot get it for specific users.

  • Hi santosh_csc,

     

    Unfortunately, the V1 API /restapi/vc/subscriptions/global/type/bookmark doesn't work. I would be interested to know if this is working for you.

     

    Thanks,

    Srujana.