Skip to content

ramtiga/go-pocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-pocket

Interface to pocket API written in Go.

Install:

go get github.com/ramtiga/go-pocket

Usage:

import (
        "fmt"
        "github.com/ramtiga/go-pocket"
        "log"
)

func main() {
        client := pocket.NewClient("CONSUMER_KEY", "ACCESS_TOKEN")

        opt := map[string]interface{}{
                "Search": "iphone",
                "Count":  10,
        }

        // Get list
        results, err := client.PocketList(opt)
        if err != nil {
                log.Fatal(err)
        }

        for _, res := range results {
                fmt.Println(res.Resolved_title)
        }

        // Add Item
        opt_add := map[string]interface{}{
                "Url": "http://google.co.jp",
        }
        err := client.AddItem(opt_add)

}

Author:

ramtiga

About

A Go wapper for the Pocket API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages