mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2020-12-07, 07:20   #1
SuperSoda
 
Dec 2020

22 Posts
Smile Is there a public api?

Is there a public api that i can use to see information about my team etc.
SuperSoda is offline   Reply With Quote
Old 2020-12-07, 07:22   #2
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

33×181 Posts
Default

http://v5.mersenne.org/v5design/v5webAPI_0.97.html
pinhodecarlos is offline   Reply With Quote
Old 2020-12-07, 07:25   #3
SuperSoda
 
Dec 2020

48 Posts
Smile

Quote:
Originally Posted by pinhodecarlos View Post
Thank you very much
SuperSoda is offline   Reply With Quote
Old 2020-12-07, 07:39   #4
SuperSoda
 
Dec 2020

22 Posts
Default

I am getting a 404 error when trying to connect to it.
SuperSoda is offline   Reply With Quote
Old 2020-12-07, 07:43   #5
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

937310 Posts
Default

It works from here.
LaurV is online now   Reply With Quote
Old 2020-12-07, 07:44   #6
SuperSoda
 
Dec 2020

22 Posts
Default

Can you tell me the url you used to get it to work, please? I'm getting 404;s :P
SuperSoda is offline   Reply With Quote
Old 2020-12-07, 18:06   #7
Flaukrotist
 
Sep 2020
Germany

3·7 Posts
Default

Quote:
Originally Posted by pinhodecarlos View Post
While this is the PrimeNet API, at least I cannot find any reference in the specified interface to get information about the team of a user as asked by the OP.

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.
Flaukrotist is offline   Reply With Quote
Old 2020-12-07, 18:20   #8
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

3×3,163 Posts
Default

The document needs updates. There are several new worktypes available.
Uncwilly is offline   Reply With Quote
Old 2020-12-08, 03:06   #9
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

32×823 Posts
Default

Quote:
Originally Posted by Flaukrotist View Post
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..

Correct, there is no API to get team info. The only method is to get the web page and parse it.
Prime95 is offline   Reply With Quote
Old 2021-01-19, 23:31   #10
ixfd64
Bemusing Prompter
 
ixfd64's Avatar
 
"Danny"
Dec 2002
California

1001010010002 Posts
Default

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=
However, this gives me a 404 error. Am I doing something wrong?
ixfd64 is offline   Reply With Quote
Old 2021-01-24, 18:25   #11
Madpoo
Serpentine Vermin Jar
 
Madpoo's Avatar
 
Jul 2014

37·89 Posts
Default

Quote:
Originally Posted by ixfd64 View Post
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=
However, this gives me a 404 error. Am I doing something wrong?
The API for assignment updates/reservations/results is a little interesting...

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.
Madpoo is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
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

All times are UTC. The time now is 14:58.

Sat Apr 17 14:58:13 UTC 2021 up 9 days, 9:39, 0 users, load averages: 1.06, 1.51, 1.57

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.