Skip to content

LesPrimus/vimex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VIMEX

A simple wrapper around Httpx for interact with the Vimeo api.

The first step to make a request to the vimeo api is to authenticate the request.

Client Credentials authentication.

  • Sync version.
import vimex

auth = vimex.VimeoOAuth2ClientCredentials(
    client_id="my_client_id",
    client_secret="my_client_secret"
)

with vimex.VimeoClient(auth=auth) as client:
    res = client.get("https://api.vimeo.com")

Authorization code authentication.

  • Sync version.
import vimex

auth = vimex.VimeoOauth2AuthorizationCode(
    client_id="my_client_id",
    client_secret="my_client_secret",
    state="some_state"
)

with vimex.VimeoClient(auth=auth) as client:
    res = client.get("https://api.vimeo.com/me")

alt text

todo:

  • Add a cache for the tokens.

About

A wrapper around Httpx for the Vimeo api.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages