<commit_before># cloudatGOst [![GoDoc](https://godoc.org/github.com/dottorblaster/cloudatgost?status.svg)](https://godoc.org/github.com/dottorblaster/cloudatgost) [![Build Status](https://travis-ci.org/dottorblaster/cloudatgost.svg?branch=master)](https://travis-ci.org/dottorblaster/cloudatgost)

CloudAtCost API wrapper written in Go.

API Version: `v1`

## References
https://github.com/cloudatcost/api

## Installation
```bash
$ go get github.com/dottorblaster/cloudatgost
```

## Example
To interact with the CaC API you simply need to initialize a new client, passing to it your API key and your login.

```go
package main

import (
  "github.com/dottorblaster/cloudatgost"
)

func main() {
	// Initializes a new CloudAtCost client
    client := cloudatgost.NewClient("<EMAIL>", "myApiKey", nil)

    // d is defined as a TemplateList, a type that maps the JSON
    // response of the listtemplates.php endpoint
    first := client.ListTemplates()
<commit_msg>example email address in readme<commit_after># cloudatGOst [![GoDoc](https://godoc.org/github.com/dottorblaster/cloudatgost?status.svg)](https://godoc.org/github.com/dottorblaster/cloudatgost) [![Build Status](https://travis-ci.org/dottorblaster/cloudatgost.svg?branch=master)](https://travis-ci.org/dottorblaster/cloudatgost)

CloudAtCost API wrapper written in Go.

API Version: `v1`

## References
https://github.com/cloudatcost/api

## Installation
```bash
$ go get github.com/dottorblaster/cloudatgost
```

## Example
To interact with the CaC API you simply need to initialize a new client, passing to it your API key and your login.

```go
package main

import (
  "github.com/dottorblaster/cloudatgost"
)

func main() {
	// Initializes a new CloudAtCost client
    client := cloudatgost.NewClient("<EMAIL>", "myApiKey", nil)

    // d is defined as a TemplateList, a type that maps the JSON
    // response of the listtemplates.php endpoint
    first := client.ListTemplates()

{'fraction_non_alphanumeric': 0.12717948717948718, 'fraction_numerical': 0.0010256410256410256, 'mean_word_length': 4.622478386167147, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '388253', 'n_tokens_mistral': 666, 'n_tokens_neox': 651, 'n_words': 164}