chonthu / go-edgegrid

Akamai Open Client for go

Home Page:https://developer.akamai.com/introduction/Client_Auth.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Akamai-open/edgegrid client

GoDoc

Installation

go get github.com/chonthu/go-edgegrid

Usage

package main

import (
    "log"

    "github.com/chonthu/go-edgegrid"
)

func main() {
    api := edgegrid.NewFromIni(".edgerc")
    resp, err := api.Send("POST", "/ccu/v3/invalidate/url/production", "{ \"objects\" : [ \"http://example.com\" ]}")
    if err != nil {
        log.Println(err)
    }

    log.Panicln(resp)
}

Author

Nithin Meppurathu - Twitter: @meppurathu

About

Akamai Open Client for go

https://developer.akamai.com/introduction/Client_Auth.html

License:Apache License 2.0


Languages

Language:Go 100.0%