This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; | |
import "@openzeppelin/contracts/utils/Context.sol"; | |
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
import "@openzeppelin/contracts/utils/math/SafeMath.sol"; | |
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var TWITTER_API_KEY = '<Twitter OAuth 2.0 Client ID>'; | |
var TWITTER_API_SECRET_KEY = '<Twitter OAuth 2.0 Client Secret>'; | |
var TWITTER_BEARER_TOKEN ='<Access token returned in Postman>'; | |
var TWITTER_REFRESH_TOKEN = '<Refresh token returned in Postman>'; | |
var TWITTER_EXPIRES_AT= new Date('<Expiry date based on the expires_in returned from Postman>'); | |
function generateTweet() | |
{ | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.