added method to set packagist api token.