Skip to content

CDN based example

Farhan Reza edited this page Feb 21, 2024 · 7 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 -->
    
    <!-- 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@2.2.0/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)

Get Built in codes here

For more information, support or help, contact us:

Farhan Reza's GitHub Farhan Reza's LinkedIn