How to get a list of all licenses for your Software Project

Through the new VersionEye API you can get a list of all licenses for your software project. VersionEye now supports 7 different package managers. In this example I will use a Ruby Gemfile to demonstrate how easy it is to get the license list.

First of all you need to signup at VersionEye to get your API KEY. It’s free and takes less than 30 seconds. With your API KEY you can take advantage of the VersionEye API.

The “/api/v1/projects.json” resource supports file uploads via the API.

Screen Shot 2013-02-16 at 3.39.11 PM

Just send your Gemfile via POST to this resource and receive a JSON object as response with all the dependencies in the file.

Screen Shot 2013-02-16 at 3.39.35 PM

In the JSON response you will receive an “project_key”. This project key is unique per user. You can use it to fetch all licenses for the project. Just send a GET request to “/api/v1/projects/PROJECT_KEY/licenses.json?api_key=API_KEY” and you will receive the license list as JSON.

Screen Shot 2013-02-16 at 3.40.14 PM

That’s it. You need only 2 Requests to get the licenses list. Let me know how you like it.

Published by Robert Reiz

CEO @ VersionEye. Passionated software developer since 1998.

One thought on “How to get a list of all licenses for your Software Project

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: