michimani / gotwi

A library for using the Twitter API v2 in the Go language. (It is still under development).
MIT License
125 stars 26 forks source link

Tried following your example #310

Open ctrl-alt-lulz opened 9 months ago

ctrl-alt-lulz commented 9 months ago

test panicked: env 'GOTWI_API_KEY' and 'GOTWI_API_KEY_SECRET' is required.?

Wtf?

jyap808 commented 8 months ago

Set the environment variables. e.g.

% GOTWI_API_KEY=[key goes here] GOTWI_API_KEY_SECRET=[secret goes here] go run main.go

.. I guess it's mentioned in the README: https://github.com/michimani/gotwi?tab=readme-ov-file#prepare