OpenBullet2
OpenBullet2 copied to clipboard
[REQUEST] RESTful API
Is your feature request related to a problem? Please describe. I need to query an API endpoint for my clients whilst using my proxies and CAPTCHA solving without exposing the underlying API endpoint to the client
Describe the solution you'd like RESTful API for starting jobs, both batch jobs (where there'll be a final collection URL (i.e. will say "NOT READY" till job is complete) and a different URL that'll provide the current status and the output thus far) and "debugger" style single run jobs, whereby it'll stall the HTTP request till the job is finished and respond in the user's desired format.
Describe alternatives you've considered Intermediate NPM script with REST API that uses OpenBullet 2 CLI.
Additional context Ruri is <3
(If you need it for your client so your making money off it, it would make more sense coding the feature yourself instead of making others make features for you so you can make money)
This is something I always intended to implement sooner or later.
This is something I always intended to implement sooner or later.
😏😏😏
The context provided by the op is somewhat unclear. Therefore, I've added a proposal of the API below.
OB2 API
REST API that provides the option to share data and execute commands.
Endpoint
-
/api
- The endpoint of the API.
Routes
-
/jobs
- Get the status of all current jobs. Outputs the amount of hits, progress, cpm and status (idle/running) -
/jobs/:controls
- Start, pause or stop all the jobs by passing a parameter (start/pause/stop) -
/jobs/hits
- Get the hits data of all the jobs and output as json format -
/job/:id
- Get the status of a specific job. Same output as the/jobs/
route -
/job/:id/:controls
- Start, pause or stop a specific job. Similar to the/jobs/:controls
route -
/job/:id/hits
- Get the hits data of a specific job. Same output as the/jobs/hits
route
To access a route, send a request in this format: [endpoint][route]
Authentication
A route can only be accessed if a valid Authorization
header is present in the request headers. This can be:
-
Authorization: API_KEY
- Configurable on theOB Settings
page. Used by default if no admin account. -
Authorization: Basic BASE_64
- Where BASE_64 is USER:PASS encoded in base64 format.
Note
The API can also be extended further by adding more routes.
If you have any route suggestions, feel free to share them below.
Me like, but get it done RURI @@@@
@openbullet Any update on this?
@openbullet Any update on this?
Ruri is a busy man and doesn't have much free time lately to go on and implement this. I can make an unnoficial api if people really need it, but back when I talked to him, he wanted to take care of this feature by himself.
And regarding the api's concerns, a few more routes would be required, such as an route to register proxies, proxy groups, another one to be able to tweak OB2's settings, and the list goes on...
@openbullet Any update on this?
Ruri is a busy man and doesn't have much free time lately to go on and implement this. I can make an unnoficial api if people really need it, but back when I talked to him, he wanted to take care of this feature by himself.
If you could implement a functional API that would be great. Normally I would do it myself, but unfortunately I don't have much experience when it comes to C#.
I am confident this feature will be greatly appreciated by the OB2 community. I for one would appreciate it a lot, as it really opens a lot of new possibilities, which is currently not possible as of today.
And regarding the api's concerns, a few more routes would be required, such as an route to register proxies, proxy groups, another one to be able to tweak OB2's settings, and the list goes on...
Essentially yes, there are some factors to consider when creating the API architecture.
What's important to remember is security and scalability. The API must be secure and able to support concurrent requests without impact on performance.
This feature is confirmed to be coming in 2023, so stay tuned. Sadly I cannot work at a fast pace because of my full time job, but I already started working on this so it is definitely coming.
@openbullet It's coming?
I am almost done with the API, but I will only release it after I rewrite the frontend client as well, moving away from Blazor in favor of a different SPA which will use the API. I will start working on the frontend next month. A temptative release date for this feature to be released is May 2023.
any updates? are we close to get this feature?
any updates? are we close to get this feature?
It's still work in progress and it will most likely take a while for ruri to finish the beta development of this. He is putting in some good hard work.
any news?
Nothing yet
Cartel de Sinaloa
Sent from Proton Mail mobile
-------- Original Message -------- On Sep 27, 2023, 5:33 PM, pitagoras530 wrote:
any news?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Any update on this?
The API is finished, I also completely rewrote the web client from scratch. It's on a private fork for now until everything is properly tested to make sure the release is stable.
Please be patient, sadly I can only develop OB2 as a hobby nowadays since I have a full time job.
The new client is going to be released soon and has a rich API so I'm going to close this, just wait for the release