I have a REST service in the background of my plugin that expects to receive a camera and thereby generate a Bookmark. I have been looking at the examples but they are through the protocol and need username and password. Is it possible to create boomarks from the SDK without a user?
There’s not much you can do with a Milestone server without a username and password. This will probably change in the future but for now you’ll need a basic or Windows user to do things like create bookmarks.
If you’re unable to securely store credentials on the machine creating bookmarks or there’s a password rotation policy that would make it inconvenient, I would consider creating a lightweight service to run on the management server under the network service context maybe, and build that service to require your client to supply an API key/secret. Authenticate with that little proxy with some API credentials, and then it does the bookmark management from there as network service (or some other service account).
Thank you, can other users see the bookmarks of the user that I use in the plugin?
Sorry, it’s my first plugin in Milestone, I need any license to make it work? Because I get “The feature is not licensed” exception.
Yes, other users can see the bookmarks!
I recommend that you read here: https://doc.milestonesys.com/2020R3/en-US/feature_flags/ff_bookmarking/sc_workingwithbookmarks(547).htm?Highlight=bookmark
As the page hints bookmarking is not in all versions. XProtect Corporate, XProtect Expert and XProtect Professional+ has this, the lower product versions do not has this!