-
-
Notifications
You must be signed in to change notification settings - Fork 5
CDN based example
Farhan Reza edited this page Feb 19, 2024
·
8 revisions
Welcome to the if-follow-package wiki👋
<!DOCTYPE html>
<html>
<head>
<!-- Download if-follow-package from CDN -->
<script
src="https://cdn.jsdelivr.net/npm/axios@1.6.7/dist/axios.min.js">
</script>
<script src="https://cdn.jsdelivr.net/npm/if-follow-
package@2.1.4/lib/index.min.js">
</script>
</head>
<body>
<script>
// Use if-follow-package ifFollow function to create an instance
const yourUsername = 'username'; // replace with your username
const yourToken = 'access-token' // replace with your access token
const followController = ifFollow(yourUsername, yourToken);
// Use if-follow-package Methods on created instance(followController)
</script>
</body>
</html>Use if-follow-package Methods on created instance(followController)