Skip to content

Commit eca51cf

Browse files
committed
Removed post attachment
1 parent f932a76 commit eca51cf

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

src/Asana/Resources/Gen/AttachmentsBase.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,6 @@ public function __construct($client)
1212
$this->client = $client;
1313
}
1414

15-
/** Upload an attachment
16-
*
17-
* @param string $task_gid (required) The task to operate on.
18-
* @param array $params
19-
* @param array $options
20-
* @return response
21-
*/
22-
public function createAttachmentForTask($task_gid, $params = array(), $options = array()) {
23-
$path = "/tasks/{task_gid}/attachments";
24-
$path = str_replace("{task_gid}", $task_gid, $path);
25-
return $this->client->post($path, $params, $options);
26-
}
27-
2815
/** Delete an attachment
2916
*
3017
* @param string $attachment_gid (required) Globally unique identifier for the attachment.

swagger_templates/api.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class {{classname}}Base {
1212
{
1313
$this->client = $client;
1414
}
15-
{{#operation}}
15+
{{#operation}}{{^formParams}}
1616
{{#contents}}
1717

1818
/** {{#summary}}{{{.}}}{{/summary}}{{^summary}}{{operationId}}{{/summary}}
@@ -32,6 +32,6 @@ class {{classname}}Base {
3232
return $this->client->{{#neq "GET" httpMethod}}{{toLowerCase httpMethod}}{{/neq}}{{#eq "GET" httpMethod}}{{returnContainer}}{{/eq}}($path, $params, $options);
3333
}
3434
{{/contents}}
35-
{{/operation}}
35+
{{/formParams}}{{/operation}}
3636
{{/operations}}
3737
}

0 commit comments

Comments
 (0)