Gather PyPi author details via their API - pypi

PyPi has an API for developers where they can gain project info from. However their documentation has a proper reference to collect project data, I was wondering whether we can collect user-specific info about the author/owner of the repository using the same API or anything else.
I want info on the no. of packages the author has published under PyPi, his contact information and social links (if provided during the signin). Does the same API or any other APIs return the collective data on the specified PyPi user?

Related

Set permissions for different namespaces in Azure DevOps using Rest API

How can I use RestAPI to set permissions for Build definitions, Release definitions, git repo and team securities? When I was using TFS, I was able to do this using Tfsssecurity.exe tool.
Edited.
For example, I am trying to modify the project permissions of Contributors group. like Allow Contributors to rename team project etc.
enter image description here
Are you looking for the Security API page?
You probably need to manage group membership using Graph API.
The Get started page lists the libraries you can use and how to authenticate.
There isn’t the REST API to change permission of release definition and git repo. Other contributors submit a user voice that you can vote Set version control permissions by REST API
For details,please refer to these links:
VSTS REST API to change security permissions on Release definition or Release definition environment
Use VSTS Rest API to set git repo permissions
Hope this helps.

Github - how to download all repository information in the json format?

I want to explore all repository information from Github and build a database.
I have read the Github api docs, and found that the name of a specific repo or a specific query must be given when carrying out search operations.
Without a specific query, the search cannot be processed.
So is it possible to download all repo information in the json format via the API without specifying what exact repos to be searched?
No, for a large-scale query on all GitHub (public) repositories, you would need to use GitHub BigQuery instead.
With that service, you can run a query on all GitHub repo.

Stripe.net and Stripe API

Im looking to find out the latest stripe.net (https://github.com/jaymedavis/stripe.net/tree/v6.11.0) compatibility with stripe.com api (https://stripe.com/docs/upgrades).
Does anybody know if there is a compatibility relationship between the stripe.net and stripe.com api?
Per Stripe docs:
When we make backwards-incompatible changes to the API, we release new, dated versions. The current version is 2016-07-06. Read our API upgrades guide to see our API changelog and to learn more about backwards compatibility.
...
All requests will use your account API settings, unless you override the API version.
...
To set the API version on a specific request, send a Stripe-Version header.
Stripe.net sets the Stripe-Version for every request -- currently to 2016-07-06. In the GitHub repo, you can see the code that sets it. See here for the API Version it uses and here where it actually adds the header.

How to create a WebHook with WCF to GitHub Enterprise?

I wanna create a WebHook to integrate with a server GitHub Enterprise. I want to use WCF to create this service, but I don't found a tutorial or step by step. This is my first work with WebHooks, and I did not found the model of the structure of the service to integrate with GitHub.
Anybody have a solution, example or the way to developer this? What methods, parameters and names I need use? The documentation of GitHub is not clear to me.
Thanks.
The methodology to create webhooks in the UI on earlier versions of GitHub Enterprise is very similar to GitHub.com and is now identical on GitHub Enterprise 11.10.340 and later.
Using the UI is a case of browsing to the repository in question, select the "Settings" icon on the right, select "Service Hooks" and configure the appropriate hook. (The wording has changed slightly in GitHub Enterprise 11.10.340 to match what you see on GitHub.com).
If there isn't already a predefined service, a standard "WebHook URLs" hook should do the trick. This will POST the push payload to the URL you enter here.
You can also create the webhook using the API. If you're not running GitHub Enterprise 11.10.340 or later, you can refer to our archived documentation at https://developer.github.com/enterprise/11.10.320/, specifically https://developer.github.com/enterprise/11.10.320/v3/repos/hooks/ for how to use the API to create a webhook. If you're running GitHub Enterprise 11.10.340 or later the documentation at https://developer.github.com/webhooks/ applies to these versions of GitHub Enterprise.
You'd then need to ensure the recipient of this POST knows how to process the payload and act upon it.
A good service to use to check the payload from any webhook is http://requestb.in/.

Which NuGet package to install for OAuth authorization with Google API Dot Net Client?

I need to simply do this:
I need my application to use OAuth to get a user's full name, email address, gender and date of birth from Google.
I've got the whole deal about how to use OAuth. I've got the workflow and I could myself use the HttpWebRequest or the HttpClient to make requests myself and do it the raw way, which I actually prefer.
But, just to be safe, I want to use the Google API Dot Net Client. I have been reading through the vast amount of documentation about using this monstrous thing and I can't figure out a few basic things:
1) Which Google API do I need to use? Just the Google OAuth API will do? I see in the google dot net client library samples that they all get data from other Google services such as the Drives or Books services/APIs.
If I need just the basic information such as full name, email, gender and date of birth, which service do I need to query using the Google OAuth API?
2) Which NuGet package must I install? There're plenty of them with roughly the same names.
I've read a ton of stuff in the last 2 days about this and there are about 28 tabs open in my browser about this. The more I read, the more it adds to my confusion.
The NuGet package pages on the nuget website have no documentation at all. They must clearly state the purpose and the extent of services that the package provides. The latter is clearly missing. They all seem to have the same one line description instead, which is totally unhelpful.
I even took the source for the google-api-dot-net-client and tried compiling it. I didn't even know which Visual Studio version it was going to open in. I read the solution files in Notepad and they suggested that the version of 2012. So when I opened the solution in Visual Studio for Web 2012 Express, many projects did not open; it said they were incompatible with the version of Visual Studio. Also, the dependencies/references weren't loaded correctly.
I am using Windows 7 Home Premium. I've got Visual Studio Express versions from 2008 to 2013.
I need to use the OAuth API in an ASP.NET MVC application. I've seen various samples. I just need to know the basic set up information such as which binaries and which NuGet packages I need to get and from where.
Update
Hurray to hand-plumbing. I'm doing it by hand. Ditch the .NET client.
All Google.Apis NuGet packages are auto generated. As you can see there are packages for Drive, YouTube, Plus, Storage, AdSense, etc. You can read more about each package in our developers.google.com site. Take a look at the following:
https://developers.google.com/api-client-library/dotnet/ - Contains all the documentation for the .NET client library for Google APIs.
https://developers.google.com/api-client-library/dotnet/apis/ - Contains all the different Google APIs and several references to the API documentation, how to download it using NuGet, etc.
Check out our https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth page. It contains a lot of information about the OAuth 2.0 protocol and several snippets
In addition, just to let you know, you don't need to use any of that:
https://code.google.com/p/google-api-dotnet-client/source/browse/ contains only the core library code that is shared between all those different APIs. All APIs shared the same OAuth 2.0 protocol, the same HTTP components, the same media upload and download mechanism and so on. Every week I update the NuGet packages by running the NuGet publisher.
Hope it makes sense now.