![]() |
![]() |
#1 |
Dec 2020
22 Posts |
![]()
Is there a public api that i can use to see information about my team etc.
|
![]() |
![]() |
![]() |
#2 |
"Carlos Pinho"
Oct 2011
Milton Keynes, UK
5×977 Posts |
![]() |
![]() |
![]() |
![]() |
#3 | |
Dec 2020
410 Posts |
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#4 |
Dec 2020
22 Posts |
![]()
I am getting a 404 error when trying to connect to it.
|
![]() |
![]() |
![]() |
#5 |
Romulan Interpreter
Jun 2011
Thailand
33×347 Posts |
![]()
It works from here.
|
![]() |
![]() |
![]() |
#6 |
Dec 2020
22 Posts |
![]()
Can you tell me the url you used to get it to work, please? I'm getting 404;s :P
|
![]() |
![]() |
![]() |
#7 | |
Sep 2020
Germany
22×5 Posts |
![]() Quote:
So even if they manage to successfully send a request to it (example call is given under 1.1 in the documentation), I don't think they will get this information about their team. I would instead propose a way around it: Request the web page with the link from your browser which you can access with your login data and crawl the HTML response for the information you are searching for. But be cautious and make sure to request web pages seldomly to limit the load on the server if you do your crawling automatically. |
|
![]() |
![]() |
![]() |
#8 |
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
19×499 Posts |
![]()
The document needs updates. There are several new worktypes available.
|
![]() |
![]() |
![]() |
#9 | |
P90 years forever!
Aug 2002
Yeehaw, FL
11100111010112 Posts |
![]() Quote:
Correct, there is no API to get team info. The only method is to get the web page and parse it. |
|
![]() |
![]() |
![]() |
#10 |
Bemusing Prompter
"Danny"
Dec 2002
California
23×33×11 Posts |
![]()
I'm trying to reserve a specific exponent for P-1 factoring using this API call:
Code:
http://v5.mersenne.org/v5/?px=GIMPS&v=0.97&t=ra&g=<my manual testing GUID>&c=0&w=4&n=<exponent>&ss=&sh= |
![]() |
![]() |
![]() |
#11 | |
Serpentine Vermin Jar
Jul 2014
37×89 Posts |
![]() Quote:
For example, if the computer you're getting an assignment for hasn't had it's status updated in the past XX days, you would first need to call the "uc / update computer" API. Even if nothing has changed as far as how much memory, what type of CPU, etc. My guess is that it was intended as a way to make sure the server is handing out an appropriate work type for your machine, in case anything changed. On the other hand, you shouldn't have received a 404 though... if the URL is correct but the parameters are wrong, or it couldn't process it because of the aforementioned "CPU needs updating", you'd get a reply from the server with an error code, and not a generic 404. I've found the API to be a bit unwieldy when I've looked into it. Even some of the API documentation is a little hard to follow (to say the least). I'd love to create a new API (Primenet server API v6) that uses JSON for input/output instead of URI parameters, and a more fleshed out set of commands and responses. Security is always a concern since there are those idiots out there who have nothing better to do than try to mess with this project for some reason. The current API has the ss/sh parameters (security salt and hash), and on the server side it will currently only allow API requests from certain well-defined programs. Otherwise, the monkey business we saw from El Dorko, using the manual pages to do a bunch of stuff, could use the API to do the same thing. So, before even thinking of redesigning the API, I'd like to get that sorted out first to make it more resilient against abuse. |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
US public debts | Till | Soap Box | 16 | 2019-08-02 13:44 |
Get username through public name? | UBR47K | PrimeNet | 0 | 2015-10-11 16:47 |
Private becomes public? | Brian-E | Game 2 - ♚♛♝♞♜♟ - Toxic Geckos | 3 | 2014-12-04 16:07 |
A public thanks | devarajkandadai | Math | 0 | 2007-11-18 04:59 |
Readme First - (for the Public Forum) | Prime Monster | Lounge | 20 | 2003-11-21 13:46 |