Adding a project to CircleCI via the API

We learned how to work with the CircleCI API in Chapter 13CircleCI CLI Commands and Automation, so please read the Working with the CircleCI API section of that chapter for more details on working with the API. If you already read this, then you will already have an API token that you can use. The API endpoint to follow for new projects on CircleCI (https://circleci.com/docs/api/v1-reference/#follow-project) shows that you need to make a POST HTTP request and add your API token as a query string parameter.

Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.