Closed

Change curl api to PHP

This project received 16 bids from talented freelancers with an average bid price of $41 USD.

Get free quotes for a project like this
Project Budget
$10 - $30 USD
Total Bids
16
Project Description

Write following script to work with PHP

curl -XPOST -H "Content-type: application/json" http://localhost:9090/user-service/rest/users -d '

{

"user" : {

"userName" : "snubben",

"operatorId" : "1",

"userInformation" : {

"billingAddress" : "Norrgatan 13",

"city" : "Stockholm",

"country" : "Sweden"

}

},

"password" : "pwd"

}'

GET USER BY ID:

curl -XGET http://localhost:9090/user-service/user/rest/id/1003

SEARCH QUERY:

curl -XPUT -H "Content-type: application/json" http://localhost:9090/user-service/rest/users/search/query -d '

{

"screenName": "bot%",

"order": "ID",

"ascending" : "false",

"queryLimit" : "10",

"queryOffset" : "0"

}'

create wallet

curl -XPUT -H "Content-type: application/json" http://localhost:9090/user-service/rest/users/search/query -d '

{ "negativeBalanceAllowed" : false,

"requestId" : "...",

"userId" : ...,

"type" : "SESSION_ACCOUNT",

"currencyCode" : "...",

"information" : { "name" : "...",

"userName" : "...",

"gameId" : ...,

"objectId" : "..."

}

}

Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online