changed twitter bearer token to avoid rate limits
This commit is contained in:
parent
af1fc24b4d
commit
94b527afe1
1 changed files with 3 additions and 1 deletions
|
@ -1,10 +1,12 @@
|
||||||
import got from "got";
|
import got from "got";
|
||||||
import loc from "../../localization/manager.js";
|
import loc from "../../localization/manager.js";
|
||||||
|
import { genericUserAgent } from "../config.js";
|
||||||
|
|
||||||
export default async function(obj) {
|
export default async function(obj) {
|
||||||
try {
|
try {
|
||||||
let _headers = {
|
let _headers = {
|
||||||
"Authorization": "Bearer AAAAAAAAAAAAAAAAAAAAAIK1zgAAAAAA2tUWuhGZ2JceoId5GwYWU5GspY4%3DUq7gzFoCZs1QfwGoVdvSac3IniczZEYXIcDyumCauIXpcAPorE",
|
"User-Agent": genericUserAgent,
|
||||||
|
"Authorization": "Bearer AAAAAAAAAAAAAAAAAAAAAPYXBAAAAAAACLXUNDekMxqa8h%2F40K4moUkGsoc%3DTYfbDKbT3jJPCEVnMYqilB28NHfOPqkca3qaAxGfsyKCs0wRbw",
|
||||||
"Host": "api.twitter.com",
|
"Host": "api.twitter.com",
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"Content-Length": 0
|
"Content-Length": 0
|
||||||
|
|
Loading…
Reference in a new issue