繁體中文
cURL
curl --request GET \ --url https://api.cursor.com/v0/repositories \ --header 'Authorization: Bearer <token>'
{ "repositories": [ { "owner": "your-org", "name": "your-repo", "repository": "https://github.com/your-org/your-repo" } ] }
取得已驗證使用者可存取的 GitHub 儲存庫清單。
API key from Cursor Dashboard
Repositories retrieved successfully
Array of GitHub repositories the user has access to
顯示 子屬性
The owner of the repository (user or organization)
"your-org"
The name of the repository
"your-repo"
The full URL to the GitHub repository
"https://github.com/your-org/your-repo"
這個頁面有幫助嗎?