All Projects → sivchari → gotwtr

sivchari / gotwtr

Licence: MIT license
gotwtr provides Twitter v2 API

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to gotwtr

Surfbird
A Microblogging client built on Electron and Vue
Stars: ✭ 309 (+586.67%)
Mutual labels:  twitter-api, twitter-client
twitivity
🐍 Twitter Accounts Activity API Client Library for Python
Stars: ✭ 49 (+8.89%)
Mutual labels:  twitter-api, twitter-client
twittered
Twitter API client for Java developers
Stars: ✭ 170 (+277.78%)
Mutual labels:  twitter-api, twitter-client
Harpy
A Twitter app built with Flutter
Stars: ✭ 211 (+368.89%)
Mutual labels:  twitter-api, twitter-client
Awesome Twitter Tools
A curated list of awesome twitter tools
Stars: ✭ 113 (+151.11%)
Mutual labels:  twitter-api, twitter-client
Twitterapi
Minimal python wrapper for Twitter's REST and Streaming APIs
Stars: ✭ 724 (+1508.89%)
Mutual labels:  twitter-api, twitter-client
Birdy
A super awesome Twitter API client for Python.
Stars: ✭ 259 (+475.56%)
Mutual labels:  twitter-api, twitter-client
Twitter.jl
Julia package to access Twitter API
Stars: ✭ 58 (+28.89%)
Mutual labels:  twitter-api, twitter-client
Twitter Api Php
The simplest PHP Wrapper for Twitter API v1.1 calls
Stars: ✭ 1,808 (+3917.78%)
Mutual labels:  twitter-api, twitter-client
go-t
A blazing-fast, simple and easy to use command-line client for Twitter written in Go. 🚀📨
Stars: ✭ 70 (+55.56%)
Mutual labels:  twitter-api, twitter-client
twitter-crypto-bot
This is a Twitter bot that tweets about cryptocurrencies prices every certain amount of minutes
Stars: ✭ 21 (-53.33%)
Mutual labels:  twitter-api
SparkTwitterAnalysis
An Apache Spark standalone application using the Spark API in Scala. The application uses Simple Build Tool(SBT) for building the project.
Stars: ✭ 29 (-35.56%)
Mutual labels:  twitter-api
larry
Larry 🐦 is a really simple Twitter bot generator that tweets random repositories from Github built in Go
Stars: ✭ 64 (+42.22%)
Mutual labels:  twitter-api
spotatweet
A Spotify & Twitter API mashup showing what people are listening to now. Written in Node.js.
Stars: ✭ 26 (-42.22%)
Mutual labels:  twitter-api
search-tweets-ruby
Ruby client for the Twitter search endpoints (v2/Labs/premium/enterprise). Now supports Twitter API v2 /recent and /all search endpoints.
Stars: ✭ 45 (+0%)
Mutual labels:  twitter-api
TwitterClone
TwitterClient app represents a real world twitter client app: it provides a fairly complex set of functionalities, it's a suitable showcase for all the advantages that architecture components bring, has all features that would make it a modular, scalable, testable and maintainable app.
Stars: ✭ 26 (-42.22%)
Mutual labels:  twitter-api
twspace-crawler
Script to monitor & download Twitter Spaces 24/7
Stars: ✭ 78 (+73.33%)
Mutual labels:  twitter-api
twitter-digest
✉️ A netlify lambda function that emails you tweets from a twitter list.
Stars: ✭ 14 (-68.89%)
Mutual labels:  twitter-api
twitter-ruby-ads-sdk
A Twitter supported and maintained Ads API SDK for Ruby.
Stars: ✭ 63 (+40%)
Mutual labels:  twitter-api
ml-flashcards
Extracting data from Twitter for #machinelearningflashcards 🤖
Stars: ✭ 35 (-22.22%)
Mutual labels:  twitter-api

gotwtr

Go Reference codecov reviewdog test

gotwtr is a Go client library for the Twitter v2 API.

Note

We covers only Twitter v2 API supported by OAuth 2.0 Bearer Token.

We will had worked on it, when new one is be handled OAuth 2.0.

Features

Tweet

  • Tweet lookup
  • Timelines
  • Search Tweets
  • Tweet Counts
  • Filtered Stream
  • Volume Streams
  • Retweets
  • Likes

Lists

  • List lookup
  • List Tweets lookup
  • List members
  • List follows

Users

  • User lookup
  • Follows

Spaces

  • Space lookup
  • Search spaces

Installation

go get github.com/sivchari/gotwtr

Documentation

Please see GoDoc

Example

Tweet lookup

package main

import (
	"context"
	"fmt"

	"github.com/sivchari/gotwtr"
)

func main() {
	client := gotwtr.New("YOUR_TWITTER_BEARER_TOKEN")
	// look up multiple tweets
	ts, err := client.RetrieveMultipleTweets(context.Background(), []string{"id", "id2"})
	if err != nil {
		panic(err)
	}
	for _, t := range ts.Tweets {
		fmt.Println(t)
	}

	// look up single tweet
	t, err := client.RetrieveSingleTweet(context.Background(), "id")
	if err != nil {
		panic(err)
	}
	fmt.Println(t.Tweet)
}

If you wanna more example, please see examples dir.

These are covered all code gotwtr provides Twitter v2 API interface.

Contributing

We are welcome to contribute to this project.

Fork and make a Pull Request, or create an Issue if you see any problem or any enhancement, feature request.

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