spookykat / moonboard Goto Github PK
View Code? Open in Web Editor NEWAn API wrapper for moonboard
An API wrapper for moonboard
Thanks for creating such useful software!
Since the recent release of the new official MoonBoard app, fetch_problems.py
has stopped working.
The following is the error displayed:
$ python3 fetch_problems.py
Traceback (most recent call last):
File "fetch_problems.py", line 58, in <module>
json_data = requestProblemsJson(0, z, holdset, angle)
File "fetch_problems.py", line 14, in requestProblemsJson
'authorization': f'BEARER {getAccessToken()}',
File "/home/nagamiya/tmp/MoonBoard/get_accesstoken.py", line 15, in getAccessToken
'refresh_token': getRefreshToken(),
File "/home/nagamiya/tmp/MoonBoard/get_accesstoken.py", line 39, in getRefreshToken
return(r.json()['refresh_token'])
KeyError: 'refresh_token'
I wrote a print
statement to get_accesstoken.py
and the MoonBoard server returned the following response:
{'error': 'Obsolete', 'error_description': 'This version of the MoonBoard app is now obsolete, please download the new MoonBoard app from the store.'}
diff --git a/get_accesstoken.py b/get_accesstoken.py
index 27cfd11..ed7b06f 100644
--- a/get_accesstoken.py
+++ b/get_accesstoken.py
@@ -36,4 +36,5 @@ def getRefreshToken():
'client_id': 'com.moonclimbing.mb'
}
r = requests.get(URL, headers=headers, data=data)
+ print(r.json())
return(r.json()['refresh_token'])
Are there any plans to release a new version of the software that will resolve this issue?
Hey guys I was looking into trying to make a new moonboard iOS app but am still flushing out some of the details. I see that you guys have a moonboard api and I was hoping to ask some questions about it and if you mind if I used it? Love to get in touch: [email protected]
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.