Skip to content

chonthu/go-edgegrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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