Skip to content

Chronolabs-Cooperative/Robots-API-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chronolabs Cooperative Presents

Robots API in PHP for Social networks API's

Author: Dr. Simon Antony Roberts simon@snails.email

Robots for Twitter + Other Later Social Media Platforms API's

This is a ROBOT(s) API Service there is no calling or REST API functions on this API from here it is an automated service. This help only provide current tasks that have been described by the robot's status lines on logging! Howevere there is in the /include path the following configuration files...

Configuring for Crontab

You can put more cron.execute.php if you want to have more sessioning on the apis but you can get banned for this, run on the shell of the service the following:

$ sudo crontab -e

Now put the following in:-

*/1 * * * * /usr/bin/php -q /var/www/robots.snails.email/crons/cron.execute.php
*/1 * * * * /usr/bin/php -q /var/www/robots.snails.email/crons/cron.execute.php
*/1 * * * * /usr/bin/php -q /var/www/robots.snails.email/crons/cron.execute.php
*/1 * * * * /usr/bin/php -q /var/www/robots.snails.email/crons/cron.execute.php
*/1 * * * * /usr/bin/php -q /var/www/robots.snails.email/crons/cron.execute.php
*/1 * * * * /usr/bin/php -q /var/www/robots.snails.email/crons/cron.execute.php
*/15 * * * * /usr/bin/php -q /var/www/robots.snails.email/crons/cron.mining.php
*/15 * * * * /usr/bin/php -q /var/www/robots.snails.email/crons/cron.reset.php

Configuring for Twitter

In the /include/robots path you create a username for the name of the folder ie. @OpenRend, then in there is a number of *.diz and one /include/robots/@OpenRend/settings.php which has the following data in it...

Example settings.php in configuration

This is the example settings.php in each configuration bin of usernames, this is for @OpenRend:~

<?php

    return array(   'twitter'      =>  array(   'consumer_key'                  =>  'oclbkcn7QZ----0Zw2xCK0QqH',
                                                'consumer_secret'               =>  'q0EHWHcffyddj----UYIyHtZwkwDTjPiRXukwmefL8OzOjjyTj',
                                                'oauth_access_token'            =>  '2836500978-WqXCo----MKHaYKKLdVF5o6ev39QCZMqhSJ9Sq6',
                                                'oauth_access_token_secret'     =>  'n4RHXBolb9dM0kP5GWb----YqGxTDdEDuNnQ4OwyKv2mw',
                                                'username'                      =>  'OpenRend'
                                   ),
                    'robots'       =>   array(  'twitter'           =>  array('retweeter', 'replier', 'newfollowers', 'thankfollowers', 'fairwellfollowers')
                                ),
                    'thankfollowers'=> array(   'sesssion'                      =>  11,
                                                'seconds'                       =>  8444
                                            ),
                    'fairwellfollowers'=> array('sesssion'                      =>  11,
                                                'seconds'                       =>  8444
                                            )
                        
           );
                    
    ?>