All Projects → clearbit → clearbit-go

clearbit / clearbit-go

Licence: MIT License
Go bindings for Clearbit

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Labels

Projects that are alternatives of or similar to clearbit-go

timestampy
🕒 Bunch of utilities useful when working with UNIX timestamps
Stars: ✭ 21 (+75%)
Mutual labels:  utils
ViseUtils
整理的系列基础工具类,包含辅助工具、加密解密、数据转换、IO操作、系统工具等。
Stars: ✭ 73 (+508.33%)
Mutual labels:  utils
bat
Battery management utility for Linux laptops.
Stars: ✭ 107 (+791.67%)
Mutual labels:  utils
android-library
Android开发基础库
Stars: ✭ 14 (+16.67%)
Mutual labels:  utils
geojson-python-utils
Python helper functions for manipulating GeoJSON
Stars: ✭ 86 (+616.67%)
Mutual labels:  utils
jPublic
在我们开发项目的时候,无论项目规模大小,在所难免会写一些工具型函数来解决一些问题,随着项目开发和维护的时间越来越长,这些工具型函数会越来越多,同时还会穿插在各个项目的各模块或者文件当中,使得项目变的越来越臃肿,也不方便复用和维护。这时我们就会提取出一个类似的工具库或者基础库作为项目基础依赖,在项目中重复利用起来。 为了这样的工具库或类库更易扩展、易维护、易复用和更加稳定,我们就需要更好的去管理完善工具库。
Stars: ✭ 39 (+225%)
Mutual labels:  utils
autils
Awesome frontend utils library
Stars: ✭ 17 (+41.67%)
Mutual labels:  utils
utils.js
👷 🔧 zero dependencies vanilla JavaScript utils.
Stars: ✭ 14 (+16.67%)
Mutual labels:  utils
ThemeApplyTools
MIUI 无 root 主题工具
Stars: ✭ 31 (+158.33%)
Mutual labels:  utils
JavaInterview
JVM、JUC(高并发)、集合、计算机网络、数据库、MySql、Redis、、工作流(Activiti)、规则引擎(Drools)、Spring、SpringCloud、Mybatis、Git、Docker、Utils、Linux
Stars: ✭ 179 (+1391.67%)
Mutual labels:  utils
cmn-utils
公共函数&请求封装
Stars: ✭ 43 (+258.33%)
Mutual labels:  utils
borax
📓 Python3工具集合库——中国农历/中文数字/设计模式/树形结构
Stars: ✭ 57 (+375%)
Mutual labels:  utils
hey-utils
js-utils
Stars: ✭ 23 (+91.67%)
Mutual labels:  utils
useful
🇨🇭 A collection of useful functions for working in Elixir
Stars: ✭ 21 (+75%)
Mutual labels:  utils
onex-utils
Web business development general tool library 通用业务工具库 🥷
Stars: ✭ 23 (+91.67%)
Mutual labels:  utils
utils.js
Fast, small and purely functional utility library
Stars: ✭ 132 (+1000%)
Mutual labels:  utils
type-predicates
A comprehensive collection of type-guards, type assertions and related utils
Stars: ✭ 44 (+266.67%)
Mutual labels:  utils
Log
Breaking android log word limits and automatically formatting json.
Stars: ✭ 14 (+16.67%)
Mutual labels:  utils
markdown-utils
Convert plain text into snippets of markdown.
Stars: ✭ 28 (+133.33%)
Mutual labels:  utils
CommonUtils
A collection of useful Android classes
Stars: ✭ 37 (+208.33%)
Mutual labels:  utils

Clearbit Go Bindings

Build Status GoDoc

Package clearbit provides a client for using the Clearbit API.

Maintenance Status

This repository is currently not actively maintained. If you're looking to integrate with Clearbit's API we recommend looking at the HTTP requests available in our documentation at clearbit.com/docs

Usage

To use one of the Clearbit APIs you'll first need to create a client by calling the NewClient function. By default NewClient will use a new http.Client and will fetch the Clearbit API key from the CLEARBIT_KEY environment variable.

The Clearbit API key can be changed with:

  client := clearbit.NewClient(clearbit.WithAPIKey("sk_1234567890123123"))

You can tap another http.Client with:

  client := clearbit.NewClient(clearbit.WithHTTPClient(&http.Client{}))

If you use the httpClient just to set the timeout you can instead use WithTimeout:

  client := clearbit.NewClient(clearbit.WithTimeout(20 * time.Second))

All options can be combined and the order is not important.

Once the client is created you can use any of the Clearbit APIs

	client.Autocomplete
	client.Company     
	client.Discovery   
	client.Person      
	client.Prospector  
	client.Reveal      

Example:

  package main

  import (
      "fmt"
      "github.com/clearbit/clearbit-go/clearbit"
  )

  func main() {
      client := clearbit.NewClient(clearbit.WithAPIKey("sk_1234567890123123"))

      results, resp, err := client.Reveal.Find(clearbit.RevealFindParams{
            IP: "104.193.168.24",
      })

      if err != nil {
        fmt.Println(results, resp)
      }
  }

Please see the examples for more details.

License

clearbit-go is copyright © 2016 Clearbit. It is free software, and may be redistributed under the terms specified in the LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].