Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 660 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 660 Bytes

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