dtbaker / envato-scraper

Simple PHP class to get your Envato statement and ratings

Home Page:http://dtbaker.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

post comment method

evrpress opened this issue · comments

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?

try this, haven't test it yet:

9f0eb33

token changes per marketplace.