code: def refresh(self, refresh_token):
          
          r = requests.post(self.apiurl + "/token", params={"grant_type": "refresh_token", "client_id": self.cid,
                                                            "client_secret": self.csecret,
                                                            "refresh_token": refresh_token})
  
          if r.status_code != 200:
              raise ServerError
  
          jsd = r.json()
  
          return jsd['access_token'], int(jsd['expires_in']) + int(jsd['created_at'])
docs: Renew an oauth token given an appropriate refresh token.
  
          :param refresh_token: The Refresh Token
          :return: A tuple of (token, expiration time in unix time stamp)