TRELLO doesn't move lists within a board using API / PHP -


i'm trying move lists within board via api.

the curl

https://api.trello.com/1/lists/idlist?closed=false&idboard=idboard&pos=top&key=mykey&token=mytoken

is working - tried vie developers.trello.com , got "200 ok" response , see lists moving.

but using code

$trello_result = $trello->request('put', ('lists/'.$trello_list_id.'?closed=false&idboard='.$trello_board.'?pos=top')); 

doesn't board. $trello_list_id und $trello_board set - can create cards , lists without problem.

it doesn't mater put behind "pos" - lists stay @ current place...

any ideas how move list within board?

here's function request use make api-request.

public function request($type, $request, $args = false) {     if (!$args) {         $args = array();     } elseif (!is_array($args)) {         $args = array($args);     }      if (strstr($request, '?')) {         $url = 'https://api.trello.com/1/' . $request . '&key=' . $this->key . '&token=' . $this->token;     } else {         $url = 'https://api.trello.com/1/' . $request . '?key=' . $this->key . '&token=' . $this->token;     }      $c = curl_init();     curl_setopt($c, curlopt_header, 0);     curl_setopt($c, curlopt_verbose, 0);     curl_setopt($c, curlopt_returntransfer, 1);     curl_setopt($c, curlopt_url, $url);      if (count($args)) curl_setopt($c, curlopt_postfields, http_build_query($args));      switch ($type) {         case 'post':             curl_setopt($c, curlopt_post, 1);             break;         case 'get':             curl_setopt($c, curlopt_httpget, 1);             break;         default:             curl_setopt($c, curlopt_customrequest, $type);     }      $data = curl_exec($c);     echo curl_error($c);     curl_close($c);      return json_decode($data); } 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -