All Projects → peterhellberg → Giphy

peterhellberg / Giphy

Licence: mit
Go library for the Giphy API

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to Giphy

Odrive
Google Drive GUI for Windows / Mac / Linux
Stars: ✭ 978 (+1780.77%)
Mutual labels:  client
Kantek
kantek is a userbot written in Python using Telethon.
Stars: ✭ 45 (-13.46%)
Mutual labels:  client
Csdnblog
Csdn unofficial blog client
Stars: ✭ 48 (-7.69%)
Mutual labels:  client
Go Raknet
An idiomatic Go library implementing a basic version of the RakNet protocol.
Stars: ✭ 40 (-23.08%)
Mutual labels:  client
Nineapi
Unofficial python client library for *official* 9GAG API. (alpha)
Stars: ✭ 43 (-17.31%)
Mutual labels:  client
Twittex
Twitter client library for Elixir.
Stars: ✭ 46 (-11.54%)
Mutual labels:  client
Terminals
Terminals is a secure, multi tab terminal services/remote desktop client. It uses Terminal Services ActiveX Client (mstscax.dll). The project started from the need of controlling multiple connections simultaneously. It is a complete replacement for the mstsc.exe (Terminal Services) client. This is official source moved from Codeplex.
Stars: ✭ 971 (+1767.31%)
Mutual labels:  client
Megalodon
Mastodon, Pleroma and Misskey API client library for node.js and browser
Stars: ✭ 52 (+0%)
Mutual labels:  client
Forpda
Alternative client for 4pda.ru
Stars: ✭ 43 (-17.31%)
Mutual labels:  client
Javascript Cli
A CLI in JavaScript for the ARK Blockchain.
Stars: ✭ 48 (-7.69%)
Mutual labels:  client
Osrsclient
An open-source reflection client for Old School RuneScape.
Stars: ✭ 40 (-23.08%)
Mutual labels:  client
Gomusicbrainz
a Go (Golang) MusicBrainz WS2 client library - work in progress
Stars: ✭ 42 (-19.23%)
Mutual labels:  client
Graphql Zeus
GraphQL client and GraphQL code generator with GraphQL autocomplete library generation ⚡⚡⚡ for browser,nodejs and react native
Stars: ✭ 1,043 (+1905.77%)
Mutual labels:  client
Gochimp3
🐒 Golang client for MailChimp API 3.0.
Stars: ✭ 39 (-25%)
Mutual labels:  client
Faunadb Jvm
Scala and Java driver for FaunaDB
Stars: ✭ 50 (-3.85%)
Mutual labels:  client
Opc Da
基于utgard的OPC DA客户端
Stars: ✭ 35 (-32.69%)
Mutual labels:  client
Https
Secure HTTP client with SSL pinning for Nativescript - iOS/Android
Stars: ✭ 45 (-13.46%)
Mutual labels:  client
Fdfs client
fastdfs go client impl
Stars: ✭ 52 (+0%)
Mutual labels:  client
Sechub
SecHub - one central and easy way to use different security tools with one API/Client
Stars: ✭ 52 (+0%)
Mutual labels:  client
Honeybot
🛩 A python IRC bot with simple plugins dev. Ignited in mauritius, first-timers friendly!
Stars: ✭ 48 (-7.69%)
Mutual labels:  client

giphy

Go library for the Giphy API

Build Status Go Report Card GoDoc License MIT

Command line tool

Installation

go get -u github.com/peterhellberg/giphy/cmd/giphy

Usage

Commands:
	search, s           [args]
	gif, id             [args]
	random, rand, r     [args]
	translate, trans, t [args]
	trending, trend, tr [args]
GIPHY_LIMIT=4 giphy search computer
http://media3.giphy.com/media/wvHC7zyCedEI0/giphy.gif
http://media3.giphy.com/media/gr8K2b72UefvO/giphy.gif
http://media2.giphy.com/media/L2u68v1MmZv5m/giphy.gif
http://media1.giphy.com/media/4WOs6Af0nOOeQ/giphy.gif

Examples of using the library

translate.go

package main

import (
  "fmt"
  "os"

  "github.com/peterhellberg/giphy"
)

func main() {
  if len(os.Args) < 2 {
    return
  }

  g := giphy.DefaultClient

  res, err := g.Translate(os.Args[1:])
  if err != nil {
    fmt.Println(err)
    os.Exit(1)
  }

  fmt.Println(res.Data.MediaURL())
}

trending.go

package main

import (
  "fmt"

  "github.com/peterhellberg/giphy"
)

func main() {
  g := giphy.DefaultClient

  if trending, err := g.Trending(); err == nil {
    for i, d := range trending.Data {
      fmt.Println(i, "-", d.MediaURL())
    }
  }
}

Run an example

GIPHY_API_KEY=dc6zaTOxFJmzC GIPHY_RATING=pg-13 go run example.go

License (MIT)

Copyright (c) 2015-2017 Peter Hellberg

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Computer

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].