Is it possible to get the contributors to a repository using GitHub's graphql api? I've been searching in the explorer and I can't find a contributor property or anything like that on the Repository node.
However, it seems that given a user, the api lets you find out which repositories they've contributed to:
Am I missing something or does the V4 api really not support getting the contributors of a repository?
Related
I need list of users with developer role on Gitlab, can anyone guide me what kind of permission is required and how to get the list of developers once you have that permission in place.
The GitLab API offers a members endpoint: Docs
You can call the API and afterward filter out all Members with an access_level different from 30.
I have a custom application which is able to access the Enterprise repository using my Personal Access Token.
But when I forked the same enterprise repository I am unable to access it using the same application which uses the GitHub API and my personal access token.
So the enterprise repo looks like this : my-org-name/test-repo
And my forked repo looks like this: andy/test-repo
When I authenticate using personal access token and try to get the owner name for my repo like below using PHP KnpLab GitHub API SDK as below:
$this->gitHubClient
->api('repo')
->find($repoName)['repositories'][0]['owner']
It throws exception (No 400 type or access or forbidden exception). When I tried to check the 'repositories' array, the array itself is empty.
I have checked all the configuration twice, E.g API End point, Branch Name, Repo Name, etc. And everything is looking OK. It appears to be some access issue but not quite sure what I need to do to ask the Admin so that proper permission is set on my account for accessing the repo.
How should I solve this issue?
Edit: Did some further testing. I am able to access some other repos that looks like andy\another-repo. So only this specific repo I am unable to access.
I'm using github-api, an npm plugin, to create and manage repositories in node.js. I was able to create repositories for a user, and read a user's organizations, but I could not find out how to create a repository for an organization. I looked through the documentation but I am still confused as to how to create the repository.
Thanks in advance!
It seems that this client doesn't support repository creation for organizations. There is only createRepo for user.
The request for the user looks like:
POST /user/repos
and for the organization:
POST /orgs/:org/repos
where :org is the organisation name.
Hi I am trying to retrieve a list of all files and folders using the REST API as described here:
http://msdn.microsoft.com/en-us/library/office/dn605900(v=office.15).aspx
Since I will be working with files and folders can anyone please tell me what is API Endpoint for retrieving files and folders.
For example, The API Endpoint for Discovery service is: https://api.office.com/discovery/me"
AND
for Mail, Calenddar and Contacts API its : https//outlook.office365.com
Thanks
It's my understanding that the endpoint is specific to the O365 tenant, for example https://contoso-my.sharepoint.com/personal/jim_contoso_com/_api.
Again, it's my understanding that you can use the Discovery service's https://api.office.com/discovery/me/Services endpoint (by including an access token authorization header) to get the user specific service endpoint, however it looks like the Discovery service is broken. It was working a few weeks ago, but not today.
You may have an error but not using the latest tools. You should update your tools to Visual Studio 2013 UPdate 2 and pull down the new tools for the Office 365 API Preview from within the IDE. This will allow you to support a lot more project types as mentioned in the blog post http://visualstudiogallery.msdn.microsoft.com/7e947621-ef93-4de7-93d3-d796c43ba34f
Is there a meteor.js library available for managing user accounts?
I'd like to have users register, have access to unique user IDs to limit the number of times a single user can do something, and also have different tiers of users to control access. It would be great if I didn't have to build this out myself.
Have a look at the accounts api, and the passwords package, which should save you writing most of the boilerplate code for implementing user accounts.
There is also the accounts-ui package with support for facebook, google, and others.
You'll need to implement your own ACL and make sure collections have appropriate permissions.
Finally have a look at the All Tomorrow's Parties demo for some sample implementation.
Shameless plug: Here's an account manager based on the Meteor Roles package -
https://github.com/hharnisc/meteor-accounts-admin-ui-bootstrap-3/
Tutorials included in the readme.