# Sharing golang SDK for awx v2 api

**URL:** <https://forum.ansible.com/t/sharing-golang-sdk-for-awx-v2-api/27861>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [June 25, 2018, 1:44pm UTC](https://forum.ansible.com/t/sharing-golang-sdk-for-awx-v2-api/27861 "2018-06-25T13:44:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![user26](https://avatars.discourse-cdn.com/v4/letter/u/7993a0/32.png) [@user26](https://forum.ansible.com/u/user26)\
**Post date:** [June 25, 2018, 1:44pm UTC](https://forum.ansible.com/t/sharing-golang-sdk-for-awx-v2-api/27861/1 "2018-06-25T13:44:30Z")

</div>

Hi folks,

I’m happy to share the Go SDK for awx v2 api: [https://github.com/Colstuwjx/awx-go](https://github.com/Colstuwjx/awx-go)  
It’s easy to use, just think about the demo code below:

```auto
import (
    "log"
    awxGo "github.com/Colstuwjx/awx-go"
)

fun main() {
    awx := awxGo.NewAWX("http://awx.your_server_host.com", "your_awx_username", "your_awx_passwd", nil)
    result, _, err := awx.PingService.Ping()
    if err != nil {
        log.Fatalf("Ping awx err: %s", err)
    }

    log.Println("Ping awx: ", result)
}

```

Currently, I have finished Inventories, Job, Job template APIs, and feel free to take PR, Issue or use it!  
Thanks!
