Display one image of my github projects
zz9tf opened this issue · comments
I will take a look if the image can be retrieved from the GitHub response.
Unfortunately, GitHub API does not provide the social image URL. Please let me know if you find any other way.
Hi, I just found a method online, it's from GitHub GraphQL API v4.
With the above code, we can get the social image URL. Sorry about my limited experience with website development, I'm not sure if we can use it.
Origin source: https://stackoverflow.com/questions/56691229/how-can-i-get-my-social-preview-image-link-of-my-github-repo-using-git-api-or-an
GitProfile is using the GitHub REST API instead of the GraphQL API. There are some major differences between those APIs. We have no plan for migrating to GraphQL currently. But any PR for the migration is welcome.
Got it, thanks!