Ejemplo n.º 1
0
 def get_oceans(self):
     """Returns a JSON object with all information of current oceans."""
     return requests.get(API_URLS.get('oceans'))
Ejemplo n.º 2
0
 def get_online_status(self):
     """Returns a JSON object containing the statues of TLOPO system services."""
     return requests.get(API_URLS.get('online_status'))
Ejemplo n.º 3
0
 def get_notification_banner(self):
     """Returns a JSON object with the currently active banner."""
     return requests.get(API_URLS.get('notification_banner'))
Ejemplo n.º 4
0
 def get_release_notes(self, num=5):
     """Returns a JSON object containing requested number of release notes and their information"""
     return requests.get(API_URLS.get('release_notes') + str(num))
Ejemplo n.º 5
0
 def get_feed_news(self, num=5):
     """Returns a JSON object containing the requested number of blog posts and their information."""
     return requests.get(API_URLS.get('feed_news') + str(num))
Ejemplo n.º 6
0
 def get_launcher_news(self):
     """Returns a pre-formatted HTML document for use within the launcher."""
     return requests.get(API_URLS.get('launcher_news'))
Ejemplo n.º 7
0
 def get_login_response(self, userdata):
     return requests.post(API_URLS.get('login'),
                          data=userdata,
                          headers=HEADERS).json()