timoschlueter / php-runtastic Goto Github PK
View Code? Open in Web Editor NEWPHP class to access Runtastic activities via PHP
License: MIT License
PHP class to access Runtastic activities via PHP
License: MIT License
is it possible to get the photo urls or just the main photo url from each activity? would by very nice for a nice activity journal :-)
Please add your package to the Composer repository
Composer https://getcomposer.org/
Packagist https://packagist.org/
Hello, I've noticed that I cannot retrieve the workouts from a certain user.
The response I receive when doing the curl at the function getActivities is the following:
<html>
<head>
<title>We're sorry, but something went wrong (500)</title>
<style type="text/css">
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
div.dialog {
width: 25em;
padding: 0 4em;
margin: 4em auto 0 auto;
border: 1px solid #ccc;
border-right-color: #999;
border-bottom-color: #999;
}
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
</style>
</head>
<body>
<!-- This file lives in public/500.html -->
<div class="dialog">
<h1>We're sorry, but something went wrong.</h1>
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
</div>
</body>
</html>
I'm not sure about what can be happening. I've tested the connection with many other users and it works fine, but it always fails for this user.
This user has a Runtastic Gold account, but I have tested other Runtastic Gold accounts and it seems to work.
Any clues on what can be happening?
Thank you all in advance.
Hast du mal geguckt, ob der Live Stream auch per API/JSON verfügbar ist? So auf den ersten Blick hab ich da leider nix gefunden, es wird direkt per AJAX von https://www.runtastic.com/de/benutzer/USERNAME/friends_live_sessions ein Stück HTML geladen...
The activity list returns empty.
Hey,
ich bekomm seit Runtastic die Webseite überarbeitet hat keine Daten mit der Klasse mehr. Ist das jemand anderem auch schon aufgefallen?
Wenn ich Zeit finde werde ich auch die Tage mal schauen ob ich die Ursache ein wenig eingrenzen kann.
Gruß,
Daniel
Hello,
It seems there are some changes in the API and the class is currently broken
Notice: Undefined offset: 1 in class.runtastic.php on line 118
Notice: Undefined offset: 1 in class.runtastic.php on line 200
Warning: Invalid argument supplied for foreach() in class.runtastic.php on line 209
Warning: Invalid argument supplied for foreach() in class.runtastic.php on line 288
Hi, first of all, thanks for the great works you've done by creating this project !
We are having this error for the account of one of our user. It's the only account who seems to raise this error at this time.
After, dumping some variables, it seems that the problem is that $responseOutputJson line 248 is getting a null value.
Do you have any idea why ?
Thanks a lot !
it seems login, logout and session API urls changed.
Hello
I have not been able to find out why yet, but my activities are not sorted by latest IDs.
I am looking to retrieve the 'repetition' value, but I cannot find it in any of the returned data. Is there any way to include it, or is that on /their/ end?
Hi Timo, thanks for publishing what you know about the runtastic APIs. I have a question regarding the X-Auth-Token. In the wiki, you said it has to be generated. Are you able to share more details how to generate this token?
In your PHP class, it looks like the login HTTP POST is sending an empty authenticity_token var. Is that correct?
As mentioned in #10 and #8, there seems to be a problem with the Runtastic backend. Through my first (and not really deep) analysis i found out that the backend is only able to return a maximum of 420 activities.
I committed a workarround in 7e3d83e by limitting the number of requested activities to 420 and sorting them by ID to get the latest ones.
To resolve this issue, we should implement a paging-algorithm, since i doubt that Runtastic will back off from their introduced "rate limit".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.