Merge branch 'master' of https://github.com/meta-tech/pws-client
This commit is contained in:
commit
8cecfa057f
|
@ -18,7 +18,7 @@ Or add the package to your `composer.json`.
|
|||
|
||||
```
|
||||
"require": {
|
||||
"meta-tech/pws-client" : "~1.3"
|
||||
"meta-tech/pws-client" : "^1.3"
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -50,7 +50,7 @@ if ($response->done) {
|
|||
|
||||
}
|
||||
// post example
|
||||
$client->post('/ws/person/222/update', [ 'firstname' => 'toto']);
|
||||
$response = $client->post('/ws/person/222/update', [ 'firstname' => 'toto']);
|
||||
if ($response->done) {
|
||||
// do stuff
|
||||
}
|
||||
|
@ -69,6 +69,9 @@ if ($response->done) {
|
|||
debug : 1
|
||||
protocol : https://
|
||||
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
|
||||
store : wsess
|
||||
login : test
|
||||
|
@ -95,7 +98,7 @@ However, meta-tech always return this simple Json Structure :
|
|||
`{ done : boolean, msg : 'string contextual msg', data : whatever }`
|
||||
|
||||
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
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
},
|
||||
"require" : {
|
||||
"php" : ">=5.4",
|
||||
"symfony/yaml" : "^3.2",
|
||||
"meta-tech/pws-auth" : "~2.1"
|
||||
"meta-tech/pws-auth" : "^2.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
# pwsclient config
|
||||
|
||||
# 0 : disable, 1 : verboose, 2 : most verboose
|
||||
debug : 1
|
||||
protocol : https://
|
||||
debug : 2
|
||||
protocol : http://
|
||||
hostname : pwsserver.docker
|
||||
verifypeer : 0
|
||||
verifyhost : 0
|
||||
# file storing the server 's session id - must be out of DocumentRoot and read/writable by server
|
||||
store : wsess
|
||||
login : test
|
||||
password : test
|
||||
key : test
|
||||
login : dev
|
||||
password : foo
|
||||
key : ed830045da9861d29c46f36b4f4b1a4d4b223408667c52428370e51b615e8769
|
||||
# 0 : display cli, 1 : display html
|
||||
html_output : 0
|
||||
# http authentication
|
||||
|
|
Loading…
Reference in New Issue
Block a user