-
Notifications
You must be signed in to change notification settings - Fork 23
feat: PHP SDK update for version 19.0.0 #56
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,8 @@ use Appwrite\Services\Account; | |
|
|
||
| $client = (new Client()) | ||
| ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| ->setProject('<YOUR_PROJECT_ID>'); // Your project ID | ||
| ->setProject('<YOUR_PROJECT_ID>') // Your project ID | ||
| ->setSession(''); // The user session to authenticate with | ||
|
Comment on lines
+8
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check all account examples to see which operations use setSession
rg -n "setSession\(|->create.*Session\(" docs/examples/account/ -A 2 -B 2 2>/dev/null | head -200Repository: appwrite/sdk-for-php Length of output: 15547 Remove Official Appwrite PHP Server SDK documentation shows session creation methods should be called without 🤖 Prompt for AI Agents |
||
|
|
||
| $account = new Account($client); | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,8 @@ use Appwrite\Services\Account; | |
|
|
||
| $client = (new Client()) | ||
| ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| ->setProject('<YOUR_PROJECT_ID>'); // Your project ID | ||
| ->setProject('<YOUR_PROJECT_ID>') // Your project ID | ||
| ->setSession(''); // The user session to authenticate with | ||
|
Comment on lines
+8
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove The 🤖 Prompt for AI Agents |
||
|
|
||
| $account = new Account($client); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
setSession('')beforecreateAnonymousSession().The
createAnonymousSession()method creates a session for unauthenticated users, making the precedingsetSession('')call logically contradictory. Official SDK examples across multiple languages omit this pattern, and setting an empty session string causes authorization failures in subsequent API calls.🤖 Prompt for AI Agents