Skip to content

fix: remove content-type from GET requests #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Appwrite PHP SDK

![License](https://img.shields.io/github/license/appwrite/sdk-for-php.svg?style=flat-square&v=1)
![Version](https://img.shields.io/badge/api%20version-1.6.1-blue.svg?style=flat-square&v=1)
![Version](https://img.shields.io/badge/api%20version-1.6.2-blue.svg?style=flat-square&v=1)
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
Expand Down
45 changes: 1 addition & 44 deletions docs/account.md

Large diffs are not rendered by default.

9 changes: 1 addition & 8 deletions docs/avatars.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Avatars Service

## Get browser icon

```http request
GET https://cloud.appwrite.io/v1/avatars/browsers/{code}
Expand All @@ -19,7 +18,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
| height | integer | Image height. Pass an integer between 0 to 2000. Defaults to 100. | 100 |
| quality | integer | Image quality. Pass an integer between 0 to 100. Defaults to 100. | 100 |

## Get credit card icon

```http request
GET https://cloud.appwrite.io/v1/avatars/credit-cards/{code}
Expand All @@ -34,12 +32,11 @@ When one dimension is specified and the other is 0, the image is scaled with pre

| Field Name | Type | Description | Default |
| --- | --- | --- | --- |
| code | string | **Required** Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro. | |
| code | string | **Required** Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay. | |
| width | integer | Image width. Pass an integer between 0 to 2000. Defaults to 100. | 100 |
| height | integer | Image height. Pass an integer between 0 to 2000. Defaults to 100. | 100 |
| quality | integer | Image quality. Pass an integer between 0 to 100. Defaults to 100. | 100 |

## Get favicon

```http request
GET https://cloud.appwrite.io/v1/avatars/favicon
Expand All @@ -55,7 +52,6 @@ This endpoint does not follow HTTP redirects. **
| --- | --- | --- | --- |
| url | string | **Required** Website URL which you want to fetch the favicon from. | |

## Get country flag

```http request
GET https://cloud.appwrite.io/v1/avatars/flags/{code}
Expand All @@ -75,7 +71,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
| height | integer | Image height. Pass an integer between 0 to 2000. Defaults to 100. | 100 |
| quality | integer | Image quality. Pass an integer between 0 to 100. Defaults to 100. | 100 |

## Get image from URL

```http request
GET https://cloud.appwrite.io/v1/avatars/image
Expand All @@ -95,7 +90,6 @@ This endpoint does not follow HTTP redirects. **
| width | integer | Resize preview image width, Pass an integer between 0 to 2000. Defaults to 400. | 400 |
| height | integer | Resize preview image height, Pass an integer between 0 to 2000. Defaults to 400. | 400 |

## Get user initials

```http request
GET https://cloud.appwrite.io/v1/avatars/initials
Expand All @@ -117,7 +111,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
| height | integer | Image height. Pass an integer between 0 to 2000. Defaults to 100. | 500 |
| background | string | Changes background color. By default a random color will be picked and stay will persistent to the given name. | |

## Get QR code

```http request
GET https://cloud.appwrite.io/v1/avatars/qr
Expand Down
45 changes: 2 additions & 43 deletions docs/databases.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/examples/databases/update-float-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ $result = $databases->updateFloatAttribute(
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
min: null,
max: null,
default: null,
min: null, // optional
max: null, // optional
newKey: '' // optional
);
4 changes: 2 additions & 2 deletions docs/examples/databases/update-integer-attribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ $result = $databases->updateIntegerAttribute(
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
min: null,
max: null,
default: null,
min: null, // optional
max: null, // optional
newKey: '' // optional
);
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ $client = (new Client())

$health = new Health($client);

$result = $health->getQueueUsageDump(
$result = $health->getQueueStatsResources(
threshold: null // optional
);
13 changes: 0 additions & 13 deletions docs/examples/health/get-queue.md

This file was deleted.

24 changes: 0 additions & 24 deletions docs/functions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Functions Service

## List functions

```http request
GET https://cloud.appwrite.io/v1/functions
Expand All @@ -15,7 +14,6 @@ GET https://cloud.appwrite.io/v1/functions
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, enabled, runtime, deployment, schedule, scheduleNext, schedulePrevious, timeout, entrypoint, commands, installationId | [] |
| search | string | Search term to filter your list results. Max length: 256 chars. | |

## Create function

```http request
POST https://cloud.appwrite.io/v1/functions
Expand Down Expand Up @@ -50,15 +48,13 @@ POST https://cloud.appwrite.io/v1/functions
| templateVersion | string | Version (tag) for the repo linked to the function template. | |
| specification | string | Runtime specification for the function and builds. | s-1vcpu-512mb |

## List runtimes

```http request
GET https://cloud.appwrite.io/v1/functions/runtimes
```

** Get a list of all runtimes that are currently active on your instance. **

## List available function runtime specifications

```http request
GET https://cloud.appwrite.io/v1/functions/specifications
Expand All @@ -67,7 +63,6 @@ GET https://cloud.appwrite.io/v1/functions/specifications
** List allowed function specifications for this instance.
**

## Get function

```http request
GET https://cloud.appwrite.io/v1/functions/{functionId}
Expand All @@ -81,7 +76,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}
| --- | --- | --- | --- |
| functionId | string | **Required** Function ID. | |

## Update function

```http request
PUT https://cloud.appwrite.io/v1/functions/{functionId}
Expand Down Expand Up @@ -112,7 +106,6 @@ PUT https://cloud.appwrite.io/v1/functions/{functionId}
| providerRootDirectory | string | Path to function code in the linked repo. | |
| specification | string | Runtime specification for the function and builds. | s-1vcpu-512mb |

## Delete function

```http request
DELETE https://cloud.appwrite.io/v1/functions/{functionId}
Expand All @@ -126,7 +119,6 @@ DELETE https://cloud.appwrite.io/v1/functions/{functionId}
| --- | --- | --- | --- |
| functionId | string | **Required** Function ID. | |

## List deployments

```http request
GET https://cloud.appwrite.io/v1/functions/{functionId}/deployments
Expand All @@ -142,7 +134,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}/deployments
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: size, buildId, activate, entrypoint, commands, type, size | [] |
| search | string | Search term to filter your list results. Max length: 256 chars. | |

## Create deployment

```http request
POST https://cloud.appwrite.io/v1/functions/{functionId}/deployments
Expand All @@ -164,7 +155,6 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
| code | file | Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory. | |
| activate | boolean | Automatically activate the deployment when it is finished building. | |

## Get deployment

```http request
GET https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentId}
Expand All @@ -179,7 +169,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentI
| functionId | string | **Required** Function ID. | |
| deploymentId | string | **Required** Deployment ID. | |

## Update deployment

```http request
PATCH https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentId}
Expand All @@ -194,7 +183,6 @@ PATCH https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymen
| functionId | string | **Required** Function ID. | |
| deploymentId | string | **Required** Deployment ID. | |

## Delete deployment

```http request
DELETE https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentId}
Expand All @@ -209,7 +197,6 @@ DELETE https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deployme
| functionId | string | **Required** Function ID. | |
| deploymentId | string | **Required** Deployment ID. | |

## Rebuild deployment

```http request
POST https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentId}/build
Expand All @@ -225,7 +212,6 @@ POST https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deployment
| deploymentId | string | **Required** Deployment ID. | |
| buildId | string | Build unique ID. | |

## Cancel deployment

```http request
PATCH https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentId}/build
Expand All @@ -240,7 +226,6 @@ PATCH https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymen
| functionId | string | **Required** Function ID. | |
| deploymentId | string | **Required** Deployment ID. | |

## Download deployment

```http request
GET https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentId}/download
Expand All @@ -255,7 +240,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}/deployments/{deploymentI
| functionId | string | **Required** Function ID. | |
| deploymentId | string | **Required** Deployment ID. | |

## List executions

```http request
GET https://cloud.appwrite.io/v1/functions/{functionId}/executions
Expand All @@ -271,7 +255,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}/executions
| queries | array | Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId | [] |
| search | string | Search term to filter your list results. Max length: 256 chars. | |

## Create execution

```http request
POST https://cloud.appwrite.io/v1/functions/{functionId}/executions
Expand All @@ -291,7 +274,6 @@ POST https://cloud.appwrite.io/v1/functions/{functionId}/executions
| headers | object | HTTP headers of execution. Defaults to empty. | {} |
| scheduledAt | string | Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes. | |

## Get execution

```http request
GET https://cloud.appwrite.io/v1/functions/{functionId}/executions/{executionId}
Expand All @@ -306,7 +288,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}/executions/{executionId}
| functionId | string | **Required** Function ID. | |
| executionId | string | **Required** Execution ID. | |

## Delete execution

```http request
DELETE https://cloud.appwrite.io/v1/functions/{functionId}/executions/{executionId}
Expand All @@ -322,7 +303,6 @@ DELETE https://cloud.appwrite.io/v1/functions/{functionId}/executions/{execution
| functionId | string | **Required** Function ID. | |
| executionId | string | **Required** Execution ID. | |

## List variables

```http request
GET https://cloud.appwrite.io/v1/functions/{functionId}/variables
Expand All @@ -336,7 +316,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}/variables
| --- | --- | --- | --- |
| functionId | string | **Required** Function unique ID. | |

## Create variable

```http request
POST https://cloud.appwrite.io/v1/functions/{functionId}/variables
Expand All @@ -352,7 +331,6 @@ POST https://cloud.appwrite.io/v1/functions/{functionId}/variables
| key | string | Variable key. Max length: 255 chars. | |
| value | string | Variable value. Max length: 8192 chars. | |

## Get variable

```http request
GET https://cloud.appwrite.io/v1/functions/{functionId}/variables/{variableId}
Expand All @@ -367,7 +345,6 @@ GET https://cloud.appwrite.io/v1/functions/{functionId}/variables/{variableId}
| functionId | string | **Required** Function unique ID. | |
| variableId | string | **Required** Variable unique ID. | |

## Update variable

```http request
PUT https://cloud.appwrite.io/v1/functions/{functionId}/variables/{variableId}
Expand All @@ -384,7 +361,6 @@ PUT https://cloud.appwrite.io/v1/functions/{functionId}/variables/{variableId}
| key | string | Variable key. Max length: 255 chars. | |
| value | string | Variable value. Max length: 8192 chars. | |

## Delete variable

```http request
DELETE https://cloud.appwrite.io/v1/functions/{functionId}/variables/{variableId}
Expand Down
2 changes: 0 additions & 2 deletions docs/graphql.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Graphql Service

## GraphQL endpoint

```http request
POST https://cloud.appwrite.io/v1/graphql
Expand All @@ -14,7 +13,6 @@ POST https://cloud.appwrite.io/v1/graphql
| --- | --- | --- | --- |
| query | object | The query or queries to execute. | {} |

## GraphQL endpoint

```http request
POST https://cloud.appwrite.io/v1/graphql/mutation
Expand Down
Loading