niconico.py icon indicating copy to clipboard operation
niconico.py copied to clipboard

[Improvement] Add a decorating function that explicitly requires authentication

Open Negima1072 opened this issue 2 years ago • 3 comments

Overview

Use Python's decorating function to distinguish whether it is an authentication-required function.

Sample

@auth_required
def get_own_information():
   ~~do something~~

Tasks

  • [ ] Create decorating function
  • [ ] Distinguish whether authentication is required

Negima1072 avatar Jun 05 '22 05:06 Negima1072