diffbot

package module
Version: v0.0.0-...-de1b827 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2014 License: GPL-2.0 Imports: 5 Imported by: 0

README

Diffbot API Client Library for Go (stub)

This is not a final version. Please don't try to use this library yet.

Usage

import (
	"fmt"
	"github.com/attilaolah/diffbot"
)

const APIKey = "my-secret-api-key"

func main() {
	a, err := diffbot.Article(APIKey, "http://attilaolah.eu")
	if err != nil {
		panic(err)
	}
	fmt.Println(a)
}

Documentation

Overview

Package diffbot provides a wrapper for the Diffbot API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Article

func Article(key, url string) (a *types.Article, err error)

Types

type Client

type Client struct {
	APIKey string
	Client http.Client
}

func (*Client) Article

func (c *Client) Article(url_ string) (a *types.Article, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL