You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**This SDK is compatible with Appwrite server version 0.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-php/releases).**
9
+
**This SDK is compatible with Appwrite server version 0.9.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-php/releases).**
9
10
10
-
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way.
11
-
Use the PHP SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools.
12
-
For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
11
+
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the PHP SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
Initialize your SDK code with your project ID which can be found in your project settings page and your new API secret Key from project's API keys section.
27
+
Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page and your new API secret Key from project's API keys section.
29
28
30
29
```php
31
30
$client = new Client();
@@ -39,7 +38,7 @@ $client
39
38
```
40
39
41
40
### Make Your First Request
42
-
Once your SDK object is set, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the API References section.
41
+
Once your SDK object is set, create any of the Appwrite service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section.
43
42
44
43
```php
45
44
$users = new Users($client);
@@ -80,7 +79,7 @@ try {
80
79
```
81
80
82
81
### Learn more
83
-
You can use followng resources to learn more and get help
82
+
You can use following resources to learn more and get help
84
83
- 🚀 [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
** Delete all sessions from the user account and remove any sessions cookies from the end client. **
143
143
144
+
## Get Session By ID
145
+
146
+
```http request
147
+
GET https://appwrite.io/v1/account/sessions/{sessionId}
148
+
```
149
+
150
+
** Use this endpoint to get a logged in user's session using a Session ID. Inputting 'current' will return the current session being used. **
151
+
152
+
### Parameters
153
+
154
+
| Field Name | Type | Description | Default |
155
+
| --- | --- | --- | --- |
156
+
| sessionId | string |**Required** Session unique ID. Use the string 'current' to get the current device session. ||
Copy file name to clipboardExpand all lines: docs/functions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ POST https://appwrite.io/v1/functions
31
31
| --- | --- | --- | --- |
32
32
| name | string | Function name. Max length: 128 chars. ||
33
33
| execute | array | An array of strings with execution permissions. By default no user is granted with any execute permissions. [learn more about permissions](/docs/permissions) and get a full list of available permissions. ||
0 commit comments