code: def get_auth_header(self):
          
          if self.api.is_authenticated:
              return {"Authorization": "Bearer %s" % self.api.access_token}
          return {"Authorization": "Client-ID %s" % self.api.client_id}
docs: Getting the authorization header according to the authentication procedure
  
          :return [dict]: Authorization header