Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 65
Posts: 65   Pages: 7   [ Previous Page | 1 2 3 4 5 6 7 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 13417 times and has 64 replies Next Thread
KerSamson
Master Cruncher
Switzerland
Joined: Jan 29, 2007
Post Count: 1684
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Something weird with the XML API, [Resolved]

Hello Erika,
happy new year !
I thank you for considering this request.
Regards,
Yves
----------------------------------------
[Jan 4, 2017 8:09:53 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Something weird with the XML API, [Resolved]

Since you are working on improvement, I would really appreciate that we will have the possibility to collect the "Statistics By Project" (see the project list on MyContribution page: Statistics By Project) as .json or .xml with the same mechanism (API) as for the WU results.
Hello KerSamson,
This is not something that we can do immediately; therefore, I have added it to the backlog.

Thank you for your support,
ErikaT

Confused, I've got project level xml mapping, used for all the charts. Surely help specifies that json is available too.

History
https://www.worldcommunitygrid.org/stat/viewP...&numRecordsPerPage=91
(can be 10000, which then basically pull all history)
Daily (emulated to show as the Global day page)
https://www.worldcommunitygrid.org/stat/viewP...amp;projectShortName=zika
[Jan 4, 2017 8:19:21 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Something weird with the XML API, [Resolved]

Hover links to see the full url addresses.
[Jan 4, 2017 8:20:25 PM]   Link   Report threatening or abusive post: please login first  Go to top 
knreed
Former World Community Grid Tech
Joined: Nov 8, 2004
Post Count: 4504
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Something weird with the XML API, [Resolved]

Only some of the stats interfaces can be rendered in JSON vs XML. Those versions were created in the mid-2000's and use techniques for rendering that are no longer what I would call best practice.

Starting last summer we full defined our standard (interally) for REST oriented API (JSON only). For example, for public data we now set the CORS policies (see http://en.wikipedia.org/wiki/Cross-origin_resource_sharing) required so that someone could develop a widget on another site which shows live data. Those same policies disallow access to personal data from other sites. As we make changes that require API interaction, we are implementing them in this style.

We need to get the following documented and into our FAQs:

All start with https://www.worldcommunitygrid.org

/api/v2/global
/api/v2/global/history
/api/v2/global/history/yesterday
/api/v2/projects
/api/v2/projects/{projectShortName}
/api/v2/projects/{projectShortName}/history
/api/v2/projects/{projectShortName}/history/today
/api/v2/projects/{projectShortName}/history/yesterday

For the API's that require pagination, you will add the parameters pageNumber and limit to control which records are returned. These will also include a metadata section in the returned result set that provides details of what records are available and what you requested:

   "_metadata": {
"recordsAvailable": 327,
"limit": 25,
"offset": 100
}

[Jan 5, 2017 1:38:45 PM]   Link   Report threatening or abusive post: please login first  Go to top 
knreed
Former World Community Grid Tech
Joined: Nov 8, 2004
Post Count: 4504
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Something weird with the XML API, [Resolved]

Since you are working on improvement, I would really appreciate that we will have the possibility to collect the "Statistics By Project" (see the project list on MyContribution page: Statistics By Project) as .json or .xml with the same mechanism (API) as for the WU results.
Hello KerSamson,
This is not something that we can do immediately; therefore, I have added it to the backlog.

Thank you for your support,
ErikaT


Also - it is my fault that Erika gave this faulty response. I had forgotten that our new API's had this capability (I knew that our old XML ones did not). More reason for us to get our internal documentation about these API's into the FAQs.
[Jan 5, 2017 1:41:48 PM]   Link   Report threatening or abusive post: please login first  Go to top 
KerSamson
Master Cruncher
Switzerland
Joined: Jan 29, 2007
Post Count: 1684
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Something weird with the XML API, [Resolved]

Hi Kevin,
I thank you for this enjoyable feedback resp. announcement. It is much appreciated. However, it would be fine to have a brief (limited) description of the additional API invocation, in order for me to test these new features.
If it is convenient for you, your send me the information directly and I will return a formal description proposal to you after testing.
Cheers,
Yves
----------------------------------------
[Jan 7, 2017 1:13:31 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Something weird with the XML API, [Resolved]

From Help:
Search Results for: xml

Do you have an XML interface for the statistics?
You may obtain an XML version for most of the public statistics pages by simply adding either "?xml=true" if there are no other parameters in the URL or "&xml=true" if there already are parameters on the URL for the page.

Alternatively, you can view the XML page and follow the references provided on that XML document to go to locate pages that are in XML format.

[Jan 7, 2017 1:22:57 PM]   Link   Report threatening or abusive post: please login first  Go to top 
KerSamson
Master Cruncher
Switzerland
Joined: Jan 29, 2007
Post Count: 1684
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Something weird with the XML API, [Resolved]

Hi SekeRob,
I mean the "MyContribution page: Statistics By Project" not the global project statistics page (I am already aware about the "&xml=true" invocation for this).
Cheers,
Yves
----------------------------------------
[Jan 7, 2017 1:36:52 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Something weird with the XML API, [Resolved]

The main My Contribution page has always (since a very long time) been accessible with the verification code [no password required], which does arrive in xml format since a few years, at least for me, without needing to specify the ?/&xml=true appendix. Format

https://www.worldcommunitygrid.org/verifyMemb...amp;code=verificationcode

(hover over url to see full path)

As was earlier noted in this thread or the other v.v. API issues, it has been requested several times to include the Dev.Stats, Dev.Profiles and Statistics History, the automated sign in being plain unreliable across various IE versions.
[Jan 7, 2017 2:13:01 PM]   Link   Report threatening or abusive post: please login first  Go to top 
KerSamson
Master Cruncher
Switzerland
Joined: Jan 29, 2007
Post Count: 1684
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Something weird with the XML API, [Resolved]

Hi SekeRob,
many thanks ! smile
It works very well but it was not documented !!! thinking
It is a real pity, since I asked several times in the past for it and I never received so a clear answer like yours today. During this time, I regularly checked the API description.
It has impacted the project I had with my master students during the last 4 months sad
Cheers,
Yves
----------------------------------------
[Jan 7, 2017 3:35:48 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 65   Pages: 7   [ Previous Page | 1 2 3 4 5 6 7 | Next Page ]
[ Jump to Last Post ]
Post new Thread