@seamapi/nextlove-sdk-generator 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/generate-php-sdk/templates/readme.md.template.js +1 -1
- package/lib/generate-php-sdk/templates/smoke-test.template.js +2 -2
- package/lib/generate-php-sdk/templates/test-fixture.template.js +1 -1
- package/package.json +1 -1
- package/src/lib/generate-php-sdk/templates/readme.md.template.ts +1 -1
- package/src/lib/generate-php-sdk/templates/smoke-test.template.ts +2 -2
- package/src/lib/generate-php-sdk/templates/test-fixture.template.ts +1 -1
|
@@ -7,7 +7,7 @@ Check out [the documentation](https://docs.seam.co) or the usage below.
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
9
9
|
\`\`\`php
|
|
10
|
-
$seam = new Seam
|
|
10
|
+
$seam = new Seam\\SeamClient("YOUR_API_KEY");
|
|
11
11
|
|
|
12
12
|
# Create a Connect Webview to login to a provider
|
|
13
13
|
$connect_webview = $seam->connect_webviews->create(
|
|
@@ -9,14 +9,14 @@ final class SmokeTest extends TestCase
|
|
|
9
9
|
{
|
|
10
10
|
public function testGetDevices(): void
|
|
11
11
|
{
|
|
12
|
-
$seam = Fixture::
|
|
12
|
+
$seam = Fixture::getTestServer();
|
|
13
13
|
|
|
14
14
|
$devices_response = $seam->devices->list();
|
|
15
15
|
$this->assertIsString($devices_response[0]->device_id);
|
|
16
16
|
}
|
|
17
17
|
public function testCreateAccessCode(): void
|
|
18
18
|
{
|
|
19
|
-
$seam = Fixture::
|
|
19
|
+
$seam = Fixture::getTestServer();
|
|
20
20
|
|
|
21
21
|
$access_code = $seam->access_codes->create(
|
|
22
22
|
device_id:"august_device_1", code:"1234"
|
|
@@ -6,7 +6,7 @@ use Seam\\SeamClient;
|
|
|
6
6
|
|
|
7
7
|
final class Fixture
|
|
8
8
|
{
|
|
9
|
-
public static function
|
|
9
|
+
public static function getTestServer()
|
|
10
10
|
{
|
|
11
11
|
$random_string = substr(str_shuffle('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'), 0, 10);
|
|
12
12
|
$api_url = "https://{$random_string}.fakeseamconnect.seam.vc";
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ Check out [the documentation](https://docs.seam.co) or the usage below.
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
9
9
|
\`\`\`php
|
|
10
|
-
$seam = new Seam
|
|
10
|
+
$seam = new Seam\\SeamClient("YOUR_API_KEY");
|
|
11
11
|
|
|
12
12
|
# Create a Connect Webview to login to a provider
|
|
13
13
|
$connect_webview = $seam->connect_webviews->create(
|
|
@@ -9,14 +9,14 @@ final class SmokeTest extends TestCase
|
|
|
9
9
|
{
|
|
10
10
|
public function testGetDevices(): void
|
|
11
11
|
{
|
|
12
|
-
$seam = Fixture::
|
|
12
|
+
$seam = Fixture::getTestServer();
|
|
13
13
|
|
|
14
14
|
$devices_response = $seam->devices->list();
|
|
15
15
|
$this->assertIsString($devices_response[0]->device_id);
|
|
16
16
|
}
|
|
17
17
|
public function testCreateAccessCode(): void
|
|
18
18
|
{
|
|
19
|
-
$seam = Fixture::
|
|
19
|
+
$seam = Fixture::getTestServer();
|
|
20
20
|
|
|
21
21
|
$access_code = $seam->access_codes->create(
|
|
22
22
|
device_id:"august_device_1", code:"1234"
|
|
@@ -6,7 +6,7 @@ use Seam\\SeamClient;
|
|
|
6
6
|
|
|
7
7
|
final class Fixture
|
|
8
8
|
{
|
|
9
|
-
public static function
|
|
9
|
+
public static function getTestServer()
|
|
10
10
|
{
|
|
11
11
|
$random_string = substr(str_shuffle('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'), 0, 10);
|
|
12
12
|
$api_url = "https://{$random_string}.fakeseamconnect.seam.vc";
|