Skip to content

v1.5 #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jul 9, 2020
Merged

v1.5 #124

merged 12 commits into from
Jul 9, 2020

Conversation

cmlccie
Copy link
Collaborator

@cmlccie cmlccie commented Jul 9, 2020

Version 1.5 adds several minor backend improvements, including:

  • Webex Tracking IDs are now prominently displayed for all API errors and warnings.

    Example Error Message:

    ApiError: [401] Unauthorized - The request requires a valid access token set in the Authorization request header. [Tracking ID: ROUTER_5F05F384-D9E9-01BB-00FF-4B0C804F00FF]
    

    You can also access the Tracking IDs via the tracking_id attribute available on the raised exception and warning objects.

    api = webexteamssdk.WebexTeamsAPI(access_token="abc")
    
    try:
        api.people.me()
    except webexteamssdk.ApiError as e:
        print(e.tracking_id)
  • The webexteamssdk library now sends a custom User-Agent header (inspired by PIP's User-Agent header).

    Example User-Agent Header:

    webexteamssdk/1.5 {"implementation": {"name": "CPython", "version": "3.7.8"}, "distro": {"name": "macOS", "version": "10.15.5"}, "system": {"name": "Darwin", "release": "19.5.0"}, "cpu": "x86_64"}
    
  • Minor package and PEP8 improvements.

nerdguru and others added 12 commits April 29, 2020 15:51
Simple properties are no longer forced into a string representation
and thus retain their original data type (i.e. booleans or numbers).
Only exception are all option enums that are converted into their
string representation.
Add the `trackingId` returned in Webex API responses to the library API errors and warnings.

Clean-up exception and warning inheritance to reduce code duplication and provide a consistent inheritance hierarchy.
Add Tracking IDs to all API Errors and Warnings
Fixed simple property rendering (fixes #107)
Use the _metadata module as the source for all library metadata.
- Add a user_agent() function to create the User-Agent header
- Refactor the user agent comment data structure
- Replace string-defining single quotes with double quotes
Only import the ._version module and compute the version when this module is imported.
Add library User-Agent header
@cmlccie cmlccie merged commit 1cea422 into master Jul 9, 2020
This was referenced Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants