Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
239 views
in Technique[技术] by (71.8m points)

http - How to get some data from request?

The data i am getting from request

Host: local.hm.com
Connection: close
Accept-Encoding: gzip, deflate
User-Agent: node-fetch/1.0 (+https://github.com/bitinn/node-fetch)
Content-Length: 406
Content-Type: application/json
Accept: application/json

{"query":"
 mutation {
 createCustomer(
 input: {
 firstname: "Dorothy"
 lastname: "Langley"
 email: "[email protected]"
 password: "Pa$$w0rd!"
 is_subscribed: false
 }
 ) {
 customer {
 firstname
 lastname
 email
 is_subscribed
 }
 }
 }
 "}
2021-02-05T10:14:41+00:00 INFO (6): actionPOST http://local.hm.com/graphql HTTP/1.1
Host: local.hm.com
Connection: close
Accept-Encoding: gzip, deflate
User-Agent: node-fetch/1.0 (+https://github.com/bitinn/node-fetch)
Content-Length: 406
Content-Type: application/json
Accept: application/json

The Data I need

{"query":"
 mutation {
 createCustomer(
 input: {
 firstname: "Dorothy"
 lastname: "Langley"
 email: "[email protected]"
 password: "Pa$$w0rd!"
 is_subscribed: false
 }
 ) {
 customer {
 firstname
 lastname
 email
 is_subscribed
 }
 }
 }
 "}

Code

$request = $this->request();

Any thoughts & answer on this questions Appreciated.

question from:https://stackoverflow.com/questions/66063063/how-to-get-some-data-from-request

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...