Search for Resources and Solutions

Networks follow method

User could have multiple social accounts connected in Midrub but to be able to receive messages in the InboxAll app, the user should subscribe the accounts to the bot. For this purpose the Networks classes has the method follow.

How the method follow works? The method follow has a parameter called args. The parameter args contains the account's information from the table networks. For example if you want the token, you have to write $args[0]['token']. You have to use the data to connect the account to the bot/webhooks.


Was this article helpful?