Skip to content

Instantly share code, notes, and snippets.

@AMcManigal
AMcManigal / main.py
Created June 30, 2021 15:56
Manheim API Auth Example
import json, os
from oauthlib.oauth2 import BackendApplicationClient
from requests_oauthlib import OAuth2Session
from oauthlib.oauth2 import TokenExpiredError
from requests.models import Response
# Example Values
# CLIENT_ID=123456
# CLIENT_SECRET=secret
# ENVIRONMENT=integration1.
openapi: "3.0.0"
info:
version: 1.0.0
title: Swagger Petstore
license:
name: MIT
servers:
- url: http://petstore.swagger.io/{version}
variables:
version:
@AMcManigal
AMcManigal / gist:0a1b973c6da8f0bbd2f1a1d591e6093d
Created April 5, 2018 18:11
Petstore With Request Body Example
openapi: "3.0.0"
info:
version: 1.0.0
title: Swagger Petstore
license:
name: MIT
servers:
- url: http://petstore.swagger.io/v1
paths:
/pets: