Permalink
Browse files

bugfixes by Nathan

  • Loading branch information...
1 parent 7928146 commit ff824ad5e49db8c74fc3b2e3f7bd3d7b5fac12c4 @d33psky d33psky committed Mar 7, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 php-pecl/ModelDownload-oauth1-pecl.php
  2. +1 −1 php-pecl/ModelUpload-oauth1-pecl.php
@@ -17,7 +17,7 @@
try {
$modelId = 1234567; # CHANGEME
$modelVersion = 0; # CHANGEME
- $oauth->fetch($api_url_base ."/models/$modelId/files/$modelVersion/v1?file=true", null, OAUTH_HTTP_METHOD_GET, array("Accept" => "application/json"));
+ $oauth->fetch($api_url_base ."/models/$modelId/files/$modelVersion/v1?file=1", null, OAUTH_HTTP_METHOD_GET, array("Accept" => "application/json"));
$response = $oauth->getLastResponse();
$json = json_decode($response);
if (null == $json) {
@@ -19,7 +19,7 @@
$file = file_get_contents("../models/". $filename);
$data = array("fileName" => "$filename",
"file" => rawurlencode(base64_encode($file)),
- "ownOrAuthorizedModel" => 1,
+ "hasRightsToModel" => 1,
"acceptTermsAndConditions" => 1,
);
$data_string = json_encode($data);

0 comments on commit ff824ad

Please sign in to comment.