|
22 | 22 | // Init SDK
|
23 | 23 | const { Client, Foo, Bar, General } = Appwrite;
|
24 | 24 | const client = new Client();
|
25 |
| - const foo = new Foo(client, 'string'); |
| 25 | + const foo = new Foo(client); |
26 | 26 | const bar = new Bar(client);
|
27 | 27 | const general = new General(client);
|
28 | 28 |
|
|
34 | 34 | });
|
35 | 35 |
|
36 | 36 | // Foo
|
37 |
| - response = await foo.get(123, ["string in array"]); |
| 37 | + response = await foo.get('string', 123, ["string in array"]); |
38 | 38 | console.log(response.result);
|
39 | 39 |
|
40 |
| - response = await foo.post(123, ["string in array"]); |
| 40 | + response = await foo.post('string', 123, ["string in array"]); |
41 | 41 | console.log(response.result);
|
42 | 42 |
|
43 |
| - response = await foo.put(123, ["string in array"]); |
| 43 | + response = await foo.put('string', 123, ["string in array"]); |
44 | 44 | console.log(response.result);
|
45 | 45 |
|
46 |
| - response = await foo.patch(123, ["string in array"]); |
| 46 | + response = await foo.patch('string', 123, ["string in array"]); |
47 | 47 | console.log(response.result);
|
48 | 48 |
|
49 |
| - response = await foo.delete(123, ["string in array"]); |
| 49 | + response = await foo.delete('string', 123, ["string in array"]); |
50 | 50 | console.log(response.result);
|
51 | 51 |
|
52 | 52 | // Bar
|
|
0 commit comments