email
parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API.curl --location --request PATCH 'https://api.github.com/user' \
--header 'Content-Type: application/json' \
--data-raw '{
"bio": "string",
"blog": "blog.example.com",
"company": "Acme corporation",
"email": "omar@example.com",
"hireable": true,
"location": "Berlin, Germany",
"name": "Omar Jahandar",
"twitter_username": "therealomarj"
}'
{
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"bio": "There once was...",
"blog": "https://github.com/blog",
"business_plus": true,
"collaborators": 8,
"company": "GitHub",
"created_at": "2008-01-14T04:33:35Z",
"disk_usage": 10000,
"email": "octocat@github.com",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"followers": 20,
"followers_url": "https://api.github.com/users/octocat/followers",
"following": 0,
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"gravatar_id": "41d064eb2195891e12d0413f63227ea7",
"hireable": true,
"html_url": "https://github.com/octocat",
"id": 1,
"ldap_dn": "string",
"location": "San Francisco",
"login": "octocat",
"name": "monalisa octocat",
"node_id": "MDQ6VXNlcjE=",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"owned_private_repos": 100,
"plan": {
"collaborators": 0,
"name": "string",
"private_repos": 0,
"space": 0
},
"private_gists": 81,
"public_gists": 1,
"public_repos": 2,
"received_events_url": "https://api.github.com/users/octocat/received_events",
"repos_url": "https://api.github.com/users/octocat/repos",
"site_admin": true,
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"suspended_at": "2019-08-24T14:15:22Z",
"total_private_repos": 100,
"two_factor_authentication": true,
"type": "User",
"updated_at": "2008-01-14T04:33:35Z",
"url": "https://api.github.com/users/octocat"
}
Authorization: Bearer ********************
【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通