Welcome to the new Box Support website. Check out all the details here on what’s changed.

How to set shared_link in cURL by PHP

New post

Comments

1 comment

  • kanemaki shinichiro

    Correct.

    excuse me. Exclude the following statements.

    curl_setopt($curl, CURLOPT_POSTFIELDS, $params); // ※

    Response is

    {"type":"error","status":400,"code":"bad_request","context_info":{"errors":[{"reason":"invalid_parameter","name":"entity-body","message":"Invalid value 'grant_type=urn......password%5D=mypassword'. Entity body should be a correctly nested resource attribute name\/value pair"}]},"help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Bad Request","request_id":"********"}

    Thank you for reading to the end.

    0
    Comment actions Permalink

Please sign in to leave a comment.