This is a go library for Twitter v2 API integration.
In order to use or demo this library, you need a developer account with twitter. If you do not have an account, please go here. Please understand that by using this library, you are using under the terms which twitter has defined.
The library is based off of version 2 of Twitters API. At the time of creation, the APIs are early access. Please be aware that as the APIs are built out, the library may lag behind.
Currently, version 2 is in development. Please refer to here for more information. Please note, that version 1 is still going to be maintained for some time after version 2 is released.
go get -u github.com/g8rswimmer/go-twitter/v2
go get -u github.com/g8rswimmer/go-twitter
To run all examples, the user is required to provide their developer account credentials. The library does not share any credentials.
The following examples demostrate the tweet APIs.
The tweet lookup API example is located here.
The tweet recent search API example is locate here.
The tweet filtered search API example is locate here.
The tweet sampled search API example is locate here.
The tweet hide replies API example is locate here.
The following example demostrate the user APIs
The user lookup API example is located here
The user lookup API example is located here
The user following API example is located here
The user followers API example is located here
The user tweet timeline API example is located here
The user tweet timeline API example is located here