Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb23c03d

Browse files
committed
update examples
1 parent3727a6c commitb23c03d

File tree

2 files changed

+23
-20
lines changed

2 files changed

+23
-20
lines changed

‎Appwrite/Services/Account.cs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ public Task<object> DeleteMFAAuthenticator(Appwrite.Enums.AuthenticatorType type
482482
[Obsolete("This API has been deprecated since 1.8.0. Please use `Account.createMFAChallenge` instead.")]
483483
publicTask<Models.MfaChallenge>CreateMfaChallenge(Appwrite.Enums.AuthenticationFactorfactor)
484484
{
485-
varapiPath="/account/mfa/challenge";
485+
varapiPath="/account/mfa/challenges";
486486

487487
varapiParameters=newDictionary<string,object?>()
488488
{
@@ -515,7 +515,7 @@ static Models.MfaChallenge Convert(Dictionary<string, object> it) =>
515515
/// </summary>
516516
publicTask<Models.MfaChallenge>CreateMFAChallenge(Appwrite.Enums.AuthenticationFactorfactor)
517517
{
518-
varapiPath="/account/mfa/challenge";
518+
varapiPath="/account/mfa/challenges";
519519

520520
varapiParameters=newDictionary<string,object?>()
521521
{
@@ -551,7 +551,7 @@ static Models.MfaChallenge Convert(Dictionary<string, object> it) =>
551551
[Obsolete("This API has been deprecated since 1.8.0. Please use `Account.updateMFAChallenge` instead.")]
552552
publicTask<Models.Session>UpdateMfaChallenge(stringchallengeId,stringotp)
553553
{
554-
varapiPath="/account/mfa/challenge";
554+
varapiPath="/account/mfa/challenges";
555555

556556
varapiParameters=newDictionary<string,object?>()
557557
{
@@ -587,7 +587,7 @@ static Models.Session Convert(Dictionary<string, object> it) =>
587587
/// </summary>
588588
publicTask<Models.Session>UpdateMFAChallenge(stringchallengeId,stringotp)
589589
{
590-
varapiPath="/account/mfa/challenge";
590+
varapiPath="/account/mfa/challenges";
591591

592592
varapiParameters=newDictionary<string,object?>()
593593
{

‎docs/examples/avatars/get-screenshot.md‎

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,26 @@ Avatars avatars = new Avatars(client);
1212

1313
byte[] result = await avatars.GetScreenshot(
1414
url: "https://example.com",
15-
headers:[object], // optional
16-
viewportWidth: 1, // optional
17-
viewportHeight: 1, // optional
18-
scale: 0.1, // optional
15+
headers: new {
16+
Authorization = "Bearer token123",
17+
X-Custom-Header = "value"
18+
}, // optional
19+
viewportWidth: 1920, // optional
20+
viewportHeight: 1080, // optional
21+
scale: 2, // optional
1922
theme: Theme.Light, // optional
20-
userAgent: "<USER_AGENT>", // optional
21-
fullpage:false, // optional
22-
locale: "<LOCALE>", // optional
23+
userAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15", // optional
24+
fullpage:true, // optional
25+
locale: "en-US", // optional
2326
timezone: Timezone.AfricaAbidjan, // optional
24-
latitude:-90, // optional
25-
longitude: -180, // optional
26-
accuracy:0, // optional
27-
touch:false, // optional
28-
permissions:new List<string>(), // optional
29-
sleep:0, // optional
30-
width:0, // optional
31-
height:0, // optional
32-
quality:-1, // optional
27+
latitude:37.7749, // optional
28+
longitude: -122.4194, // optional
29+
accuracy:100, // optional
30+
touch:true, // optional
31+
permissions:["geolocation","notifications"], // optional
32+
sleep:3, // optional
33+
width:800, // optional
34+
height:600, // optional
35+
quality:85, // optional
3336
output: Output.Jpg // optional
3437
);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp