File tree Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Expand file tree Collapse file tree 2 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -130,23 +130,38 @@ Generate an SSO Token
130
130
php artisan siasn:sso-token
131
131
```
132
132
133
- Generate an APIM and SSO Token
133
+ Generate an APIM and SSO Tokens
134
134
135
135
``` bash
136
136
php artisan siasn:token
137
137
```
138
138
139
139
You can add the ` --fresh ` option to always request a new token
140
140
141
- ### Remove Token
141
+ ### Remove Tokens
142
142
143
- Remove an APIM and SSO Token
143
+ Remove an APIM and SSO Tokens
144
144
145
145
``` bash
146
146
php artisan siasn:forget-token
147
147
```
148
148
149
- ### Send Request
149
+ ### Available Token Methods
150
+
151
+ Generate an APIM Token
152
+
153
+ ``` php
154
+ Token::getNewApimToken(); // Always request a new APIM token
155
+ Token::getApimToken(); // Request a new APIM token
156
+
157
+ Token::getNewSsoToken(); // Always request a new SSO token
158
+ Token::getSsoToken(); // Request a new SSO token
159
+
160
+ Token::forget(); // Remove APIM and SSO Tokens
161
+ ```
162
+
163
+ ### Send a Request
164
+ Using Command
150
165
151
166
Send a GET request to endpoint of SIASN API
152
167
@@ -166,9 +181,9 @@ Send a POST request to endpoint of SIASN API
166
181
php artisan siasn:post {endpoint}
167
182
```
168
183
169
- ### Using Class
184
+ ### Send a Request Using Class
170
185
171
- The Siasn class uses the Http class (Illuminate\Support\Facades\Http) from Laravel. So you can use it just like you would use that class.
186
+ The Siasn class uses the ` Http ` class (` Illuminate\Support\Facades\Http ` ) from Laravel. So you can use it just like you would use that class.
172
187
173
188
``` php
174
189
Siasn::get($endpoint, $params)
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class GenerateTokenCommand extends Command
11
11
protected $ signature = 'siasn:token
12
12
{--fresh : Always request a new token} ' ;
13
13
14
- protected $ description = 'Generate an APIM and SSO Token ' ;
14
+ protected $ description = 'Generate an APIM and SSO Tokens ' ;
15
15
16
16
public function handle (): int
17
17
{
You can’t perform that action at this time.
0 commit comments