DrayEasy API v2

DrayEasy API v2


User Profile

<h2>Overview</h2> <p>The User Profile API allows developers to fetch essential user details, including the user's name, total limit allocation, remaining limit usage, and the seconds indicating when the limit is scheduled to refresh.</p> <h2>Request</h2> <ul> <li>Method: <strong>GET</strong></li> <li>URI: <code>/users/profile</code></li> </ul> <h2>Code example</h2> <pre><code>Request: curl https://api.drayeasy.com/api/v2/users/profile \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer xxxxxxxxx' Response: HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 { &amp;quot;data&amp;quot;: { &amp;quot;name&amp;quot;: &amp;quot;USER TEST&amp;quot;, &amp;quot;rate_search_limit&amp;quot;: 200, &amp;quot;remaining_rate_search_limit&amp;quot;: 200, &amp;quot;rate_search_limit_refresh_in_seconds&amp;quot;: 0, &amp;quot;requested_rate_create_limit&amp;quot;: 50, &amp;quot;remaining_requested_rate_create_limit&amp;quot;: 50, &amp;quot;requested_rate_create_limit_refresh_in_seconds&amp;quot;: 0 } }</code></pre> <h2>Response Fields Description</h2> <table> <thead> <tr> <th>Field</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>name</td> <td>The full name of the user as registered in the system.</td> </tr> <tr> <td>rate_search_limit</td> <td>The maximum number of search queries allowed within a defined time frame.</td> </tr> <tr> <td>remaining_rate_search_limit</td> <td>The number of search queries a user can still perform before hitting the limit.</td> </tr> <tr> <td>rate_search_limit_refresh_in_seconds</td> <td>Time in seconds until the search rate limit is reset to its maximum value.</td> </tr> <tr> <td>requested_rate_create_limit</td> <td>The maximum number of create rate requests a user can make within a set period.</td> </tr> <tr> <td>remaining_requested_rate_create_limit</td> <td>The available quota of create rate requests before reaching the allocated limit.</td> </tr> <tr> <td>requested_rate_create_limit_refresh_in_seconds</td> <td>Time in seconds until the create rate limit is replenished to its full capacity.</td> </tr> </tbody> </table>

页面列表

ITEM_HTML