-
Describe the problem/questionI'm currently considering to implement I wonder if there are some docs, guidelines or code samples or even better a SDK ? Did you use the FAQ section?
What you did?I found the following related resources :
What happens👉 Which option would you officially recommand ❔ What should happenNo response Additional informationNo response Server addressNo response Server OSNo response WebserverNo response PrivateBin versionNo response Browser and versionNo response Local operating system and versionNo response Issue reproducibilityNo, I cannot reproduce it on https://privatebin.net. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
The JSON-LD REST API is documented in the wiki and so is the payload format including the mode of encryption. As I'm not a Go-user a can't say much on these solutions. The second listed one seems an outdated fork of the first one. The gearnode solution got linked to by a community member in our Third-party clients list in the wiki and it seems fairly active looking at the github repo. Also linked is pbin, but it didn't get updated in some years. The API hasn't changed in years either, so it is likely all of these solutions still work just fine with current versions of privatebin. |
Beta Was this translation helpful? Give feedback.
I'm not aware of any go modules. Do any of the above linked project separate the API into a module or library at all or is it just integrated into the CLI? I'm not a Go developer, so I'm really not the one that can give any solid advice on that front.
It is a very simple REST API, though, you don't even need to care about authentication, sessions or any other state. If all you need to do is create pastes, there is a single POST request you need to implement.
What is admittedly more challenging is implementing the cryptography correctly, if you get it right, created pastes decrypt, if not they simply wont and it is always tricky to figure out why, as the resulting payload will in either wa…