Integrating 1Password with an OS X Application...
Guys,
I love using 1Password. I’m currently developing an OS X application where I would like to be able to store a shortcut link (to a web page, software license, anything that can be stored in 1Password) in a document, that will allow the user to click on it and bring up 1Password with the proper entry shown.
Through a lot of googling ( I couldn’t find a good developer document), I ran across the url schemes. So you can do a search using something like “onepassword://search/paypal”
However, this doesn’t seem to work well if you have spaces in the search term, such as “onepassword://search/paypal - Germany”. Even if the spaces were not a problem, it doesn’t seem to allow searching across vaults.
I was hoping to be able to use the ID (which you can find in the bookmarks-default.json - which also seems to be for only one vault and looks like only contains webpages), and do something like "onepassword://search/647B263028A843538AB29C652C7AE8EE" or even "one password://647B263028A843538AB29C652C7AE8EE" but none of these seem to work.
Since there are a lot of things that can't be opened in a browser (ssh logins, software licenses, etc) I want to be able to have a url (or API call) that can show me the correct entry in 1Password directly.
Is there something I'm overlooking?
Thanks for your help,
Brett
Comments
-
Hi Brett,
Thanks for taking the time to write in :+1:
No, you are not overlooking anything. As a matter of fact you researched everything and you reached the limits of the old URL scheme based API.
I am assuming that you read our Developers: Here’s how to add a little 1Password to your iOS apps (Update 2x) blog post about the URL schemes. The bookmarks-default.json file only contains the item UUID for the Login category for the primary vault. Meaning that there is no way to access other categories such as Software License, Credit Cards, etc. The current URL scheme based API only allows you to search for items by title or UUID. It does not support saving new items from a 3rd party application.
We currently have the App Extension API for iOS 8 apps which is not URL scheme based. It is based on the new App Extension APIs from Apple.
We would love to offer a similar API for Mac developers in the future. Many developers already asked for it and I will add your vote too :smiley:
Please let me know if there's anything else I can assist you with.
Cheers!
Rad
0 -
Rad, thanks for reply. You're right, searching by UUID does seem to work, though I tried it several times and it wasn't. In any case, that is something. Would still be nice to have a fix when searching by title with a space in it (where spaces in the search url end up being %20.
Looking forward to when there might be a little more robust API available on OS X.
0 -
I can't say what might happen in regards to an OS X API @digitalmoksha but if you have any more questions do please ask :smile:
0