Skip to content

Commit

Permalink
Updated to version 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzyj123 authored Sep 12, 2023
1 parent 18d3bf9 commit c715b2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyclearpass/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _send_request(self, url, method, query=""):
full_url_path = self.server + url

if len(self.api_token) == 0:
cred = _get_api_key(self)
cred = _new_api_token(self)
try:
self.api_token = cred["access_token"]
except TypeError:
Expand Down Expand Up @@ -116,7 +116,7 @@ def _send_request(self, url, method, query=""):
return cred


def _get_api_key(self):
def _new_api_token(self):
"""
Operation: Obtain an OAuth2 access token for making API calls
HTTP Status Response Codes: 200 OK, 400 Bad Request, 406 Not Acceptable, 415 Unsupported Media Type, 200 OK, 400 Bad Request, 406 Not Acceptable, 415 Unsupported Media Type
Expand Down

0 comments on commit c715b2d

Please sign in to comment.