This commit is contained in:
a-sansara 2017-03-20 17:18:39 +01:00
commit 8cecfa057f
3 changed files with 12 additions and 10 deletions

View File

@ -18,7 +18,7 @@ Or add the package to your `composer.json`.
``` ```
"require": { "require": {
"meta-tech/pws-client" : "~1.3" "meta-tech/pws-client" : "^1.3"
} }
``` ```
@ -50,7 +50,7 @@ if ($response->done) {
} }
// post example // post example
$client->post('/ws/person/222/update', [ 'firstname' => 'toto']); $response = $client->post('/ws/person/222/update', [ 'firstname' => 'toto']);
if ($response->done) { if ($response->done) {
// do stuff // do stuff
} }
@ -69,6 +69,9 @@ if ($response->done) {
debug : 1 debug : 1
protocol : https:// protocol : https://
hostname : pwsserver.docker hostname : pwsserver.docker
# ssl options
verifypeer : 0
verifyhost : 0
# file storing the server 's session id - must be out of DocumentRoot and read/writable by server # file storing the server 's session id - must be out of DocumentRoot and read/writable by server
store : wsess store : wsess
login : test login : test
@ -95,7 +98,7 @@ However, meta-tech always return this simple Json Structure :
`{ done : boolean, msg : 'string contextual msg', data : whatever }` `{ done : boolean, msg : 'string contextual msg', data : whatever }`
see [ meta-tech/pws-server ](https://github.com/meta-tech/pws-server) see [ meta-tech/pws-server ](https://github.com/meta-tech/pws-server)
and [ meta-tech/sile-core ](https://github.com/meta-tech/silex-core) and [ meta-tech/silex-core ](https://github.com/meta-tech/silex-core)
### License ### License

View File

@ -18,7 +18,6 @@
}, },
"require" : { "require" : {
"php" : ">=5.4", "php" : ">=5.4",
"symfony/yaml" : "^3.2", "meta-tech/pws-auth" : "^2.1"
"meta-tech/pws-auth" : "~2.1"
} }
} }

View File

@ -1,16 +1,16 @@
# pwsclient config # pwsclient config
# 0 : disable, 1 : verboose, 2 : most verboose # 0 : disable, 1 : verboose, 2 : most verboose
debug : 1 debug : 2
protocol : https:// protocol : http://
hostname : pwsserver.docker hostname : pwsserver.docker
verifypeer : 0 verifypeer : 0
verifyhost : 0 verifyhost : 0
# file storing the server 's session id - must be out of DocumentRoot and read/writable by server # file storing the server 's session id - must be out of DocumentRoot and read/writable by server
store : wsess store : wsess
login : test login : dev
password : test password : foo
key : test key : ed830045da9861d29c46f36b4f4b1a4d4b223408667c52428370e51b615e8769
# 0 : display cli, 1 : display html # 0 : display cli, 1 : display html
html_output : 0 html_output : 0
# http authentication # http authentication