新しいBoxサポートサイトへようこそ。 変更点の詳細はこちらをご確認ください .

FOLDER CREATION

新規投稿

コメント

1件のコメント

  • Dom Elliott

    You need an access token and you also need to send the post data in json format.

    The following worked for me:

            $parent = array();
            $parent['id'] = $parent_id;              
            $params = array();
            $params['name'] = $name;
            $params['parent'] = $parent;   
            $params = json_encode($params);           
            $results = $this->httpClient->request('POST', 'https://api.box.com/2.0/folders',
                                                  [
                                                    'headers' => [
                                                      'Authorization' => 'Bearer ' . $access_token,
                                                      'Content-type: application/json'],
                                                    'body' => $params,
                                                  ]);

    0
    コメントアクション Permalink

投稿コメントは受け付けていません。