xpan


Namexpan JSON
Version 0.0.1 PyPI version JSON
download
home_page
SummaryAn API library for BaiduNetdisk
upload_time2023-10-20 08:54:47
maintainer
docs_urlNone
author
requires_python>=3.6
license
keywords baidunetdisk openapi_client
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
## BaiduNetdisk OpenAPI Client

An API library for [BaiduNetdisk](https://pan.baidu.com/union/doc/Kl4gsu388)

Generated by: [https://openapi-generator.tech](https://openapi-generator.tech)



### Library Struct

```
xpan
│  api_client.py
│  configuration.py
│  exceptions.py
│  model_utils.py
│  rest.py
│  __init__.py
│
├─api
│      auth_api.py
│      fileinfo_api.py
│      filemanager_api.py
│      fileupload_api.py
│      multimediafile_api.py
│      userinfo_api.py
│      __init__.py
│
└─model
        oauth_token_authorization_code_response.py
        oauth_token_device_code_response.py
        oauth_token_device_token_response.py
        oauth_token_refresh_token_response.py
        quotaresponse.py
        uinforesponse.py
        __init__.py
```



### Example

```python
import os,sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
import xpan
from xpan.api import userinfo_api
from xpan.model.quotaresponse import Quotaresponse
from xpan.model.uinforesponse import Uinforesponse
from pprint import pprint

def user_quota():
    """
    user_quota demo
    """
    # Enter a context with an instance of the API client
    with xpan.ApiClient() as api_client:
        # Create an instance of the API class
        api_instance = userinfo_api.UserinfoApi(api_client)
        access_token = "123.56c5d1f8eedf1f9404c547282c5dbcf4.YmmjpAlsjUFbPly3mJizVYqdfGDLsBaY5pyg3qL.a9IIIQ" # str | 
        checkexpire = 1 # int |  (optional)
        checkfree = 1 # int |  (optional)

        # example passing only required values which don't have defaults set
        # and optional values
        try:
            api_response = api_instance.apiquota(access_token, checkexpire=checkexpire, checkfree=checkfree)
            pprint(api_response)
        except xpan.ApiException as e:
            print("Exception when calling UserinfoApi->apiquota: %s\n" % e) 


def user_info():
    """
    user_info demo
    """
    # Enter a context with an instance of the API client
    with xpan.ApiClient() as api_client:
        # Create an instance of the API class
        api_instance = userinfo_api.UserinfoApi(api_client)
        access_token = "123.56c5d1f8eedf1f9404c547282c5dbcf4.YmmjpAlsjUFbPly3mJizVYqdfGDLsBaY5pyg3qL.a9IIIQ" # str | 

        # example passing only required values which don't have defaults set
        try:
            api_response = api_instance.xpannasuinfo(access_token)
            pprint(api_response)
        except xpan.ApiException as e:
            print("Exception when calling UserinfoApi->xpannasuinfo: %s\n" % e)


```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "xpan",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "BaiduNetdisk,openapi_client",
    "author": "",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/5c/d6/cf82e1546a1c6b95241c927d5c10870b250a1c7c410ad758a02ba37a2964/xpan-0.0.1.tar.gz",
    "platform": null,
    "description": "\r\n## BaiduNetdisk OpenAPI Client\r\n\r\nAn API library for [BaiduNetdisk](https://pan.baidu.com/union/doc/Kl4gsu388)\r\n\r\nGenerated by: [https://openapi-generator.tech](https://openapi-generator.tech)\r\n\r\n\r\n\r\n### Library Struct\r\n\r\n```\r\nxpan\r\n\u2502  api_client.py\r\n\u2502  configuration.py\r\n\u2502  exceptions.py\r\n\u2502  model_utils.py\r\n\u2502  rest.py\r\n\u2502  __init__.py\r\n\u2502\r\n\u251c\u2500api\r\n\u2502      auth_api.py\r\n\u2502      fileinfo_api.py\r\n\u2502      filemanager_api.py\r\n\u2502      fileupload_api.py\r\n\u2502      multimediafile_api.py\r\n\u2502      userinfo_api.py\r\n\u2502      __init__.py\r\n\u2502\r\n\u2514\u2500model\r\n        oauth_token_authorization_code_response.py\r\n        oauth_token_device_code_response.py\r\n        oauth_token_device_token_response.py\r\n        oauth_token_refresh_token_response.py\r\n        quotaresponse.py\r\n        uinforesponse.py\r\n        __init__.py\r\n```\r\n\r\n\r\n\r\n### Example\r\n\r\n```python\r\nimport os,sys\r\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\r\nsys.path.append(BASE_DIR)\r\nimport xpan\r\nfrom xpan.api import userinfo_api\r\nfrom xpan.model.quotaresponse import Quotaresponse\r\nfrom xpan.model.uinforesponse import Uinforesponse\r\nfrom pprint import pprint\r\n\r\ndef user_quota():\r\n    \"\"\"\r\n    user_quota demo\r\n    \"\"\"\r\n    # Enter a context with an instance of the API client\r\n    with xpan.ApiClient() as api_client:\r\n        # Create an instance of the API class\r\n        api_instance = userinfo_api.UserinfoApi(api_client)\r\n        access_token = \"123.56c5d1f8eedf1f9404c547282c5dbcf4.YmmjpAlsjUFbPly3mJizVYqdfGDLsBaY5pyg3qL.a9IIIQ\" # str | \r\n        checkexpire = 1 # int |  (optional)\r\n        checkfree = 1 # int |  (optional)\r\n\r\n        # example passing only required values which don't have defaults set\r\n        # and optional values\r\n        try:\r\n            api_response = api_instance.apiquota(access_token, checkexpire=checkexpire, checkfree=checkfree)\r\n            pprint(api_response)\r\n        except xpan.ApiException as e:\r\n            print(\"Exception when calling UserinfoApi->apiquota: %s\\n\" % e) \r\n\r\n\r\ndef user_info():\r\n    \"\"\"\r\n    user_info demo\r\n    \"\"\"\r\n    # Enter a context with an instance of the API client\r\n    with xpan.ApiClient() as api_client:\r\n        # Create an instance of the API class\r\n        api_instance = userinfo_api.UserinfoApi(api_client)\r\n        access_token = \"123.56c5d1f8eedf1f9404c547282c5dbcf4.YmmjpAlsjUFbPly3mJizVYqdfGDLsBaY5pyg3qL.a9IIIQ\" # str | \r\n\r\n        # example passing only required values which don't have defaults set\r\n        try:\r\n            api_response = api_instance.xpannasuinfo(access_token)\r\n            pprint(api_response)\r\n        except xpan.ApiException as e:\r\n            print(\"Exception when calling UserinfoApi->xpannasuinfo: %s\\n\" % e)\r\n\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "An API library for BaiduNetdisk",
    "version": "0.0.1",
    "project_urls": null,
    "split_keywords": [
        "baidunetdisk",
        "openapi_client"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5cd6cf82e1546a1c6b95241c927d5c10870b250a1c7c410ad758a02ba37a2964",
                "md5": "008f08b121dc7a1cd3bc6c020d91076e",
                "sha256": "3e3249166717b70ef22f35f9e38326a31ef9455a269ecbcd17b0399523dd8b85"
            },
            "downloads": -1,
            "filename": "xpan-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "008f08b121dc7a1cd3bc6c020d91076e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 44557,
            "upload_time": "2023-10-20T08:54:47",
            "upload_time_iso_8601": "2023-10-20T08:54:47.735766Z",
            "url": "https://files.pythonhosted.org/packages/5c/d6/cf82e1546a1c6b95241c927d5c10870b250a1c7c410ad758a02ba37a2964/xpan-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-20 08:54:47",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "xpan"
}
        
Elapsed time: 0.13598s