Skip to content

CDN based example

Farhan Reza edited this page Feb 19, 2024 · 8 revisions

Welcome to the if-follow-package wiki👋

Welcome to the CDN based example page of if-follow-package!

<!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)

Use Methods to manage follow, See here

For more information, support or help, contact us:

Farhan Reza's GitHub Farhan Reza's LinkedIn

Clone this wiki locally