Skip to content

Commit d7ac737

Browse files
committed
seperate out branch in example file
1 parent 734f44a commit d7ac737

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ function configureSDK($sdk, $overrides = []) {
9494
// $platform = 'server';
9595
}
9696

97+
$branch = '1.8.x';
9798
$version = '1.8.x';
98-
$spec = getSSLPage("https://raw.githubusercontent.com/appwrite/appwrite/{$version}/app/config/specs/swagger2-{$version}-{$platform}.json");
99+
$spec = getSSLPage("https://raw.githubusercontent.com/appwrite/appwrite/{$branch}/app/config/specs/swagger2-{$version}-{$platform}.json");
99100

100101
if(empty($spec)) {
101102
throw new Exception('Failed to fetch spec from Appwrite server');

0 commit comments

Comments
 (0)