-
-
Notifications
You must be signed in to change notification settings - Fork 5
CDN based example
Farhan Reza edited this page Oct 15, 2024
·
8 revisions
Welcome to the if-follow-package wiki👋
<!DOCTYPE html>
<html>
<head>
<!-- Download if-follow-package from CDN -->
<!-- Always if-follow-package dependency axios tag before if-follow-
package tag -->
<script
src="https://cdn.jsdelivr.net/npm/axios@1.6.7/dist/axios.min.js">
</script>
<!-- if-follow-package tag after its dependency axios tag -->
<script src="https://cdn.jsdelivr.net/npm/if-follow-
package@3.0.1/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>
<!-- Or not mix html with javascript -->
<!-- For this include a script tag for script using if-follow-package -->
<!-- example: <script src="follow-control.js"></script> -->
</body>
</html>
Use if-follow-package Methods on created instance(followController)
Use Methods to manage follow, See here
Get Built in codes
for using
if-follow-package any Method
on created instance(followController)