rate object is deprecated. If you're writing new API client code or updating existing code, you should use the core object instead of the rate object. The core object contains the same information that is present in the rate object.Authorization: Bearer ********************curl --location --request GET 'https://api.github.com/rate_limit' \
--header 'Authorization: Bearer <token>'{
"rate": {
"limit": 0,
"remaining": 0,
"reset": 0
},
"resources": {
"code_scanning_upload": {
"limit": 0,
"remaining": 0,
"reset": 0
},
"core": {
"limit": 0,
"remaining": 0,
"reset": 0
},
"graphql": {
"limit": 0,
"remaining": 0,
"reset": 0
},
"integration_manifest": {
"limit": 0,
"remaining": 0,
"reset": 0
},
"search": {
"limit": 0,
"remaining": 0,
"reset": 0
},
"source_import": {
"limit": 0,
"remaining": 0,
"reset": 0
}
}
}
【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通

扫码加入交流群