dtbaker / envato-scraper

Simple PHP class to get your Envato statement and ratings
http://dtbaker.net
42 stars 12 forks source link

post comment method #1

Closed evrpress closed 10 years ago

evrpress commented 11 years ago

I would like to add a post comment method which looks like this: public function post_comment($item_id,$comment_id, $message){

    $post = array(
        'parent_id' => $comment_id,
        'ret' => 'author_dashboard',
        'content' => $message,
    );

    $result = $this->_get_url($this->main_marketplace.'/items/'.$item_id.'/comments',        

}

This is currently not working and I always have to enter the captcha. I guess it's because of the missing ´authenticity_token´

Is the current token saved somewhere?

dtbaker commented 11 years ago

try this, haven't test it yet:

https://github.com/dtbaker/envato-scraper/commit/9f0eb33fb9aaab8fb04ca1c86ea7e5e507524b9e

token changes per marketplace.