9

I am using Ion library and i should say that is awesome. but i cannot find a documentation for creating PUT , DELETE , GET request? if it can handle this REST Request can you guide me ?

Navid_pdp11
  • 3,487
  • 3
  • 37
  • 65

2 Answers2

17

Use the .load(METHOD, URL) call to specify an HTTP verb.

koush
  • 2,972
  • 28
  • 31
2

PUT Request

void PutRequest(String URL)
{
    Ion.with(mContext)
            .load("PUT",URL)
            .setBodyParameter("name","foo")
            .asString();

}

it may help you. Check this url also https://github.com/koush/ion

CLIFFORD P Y
  • 16,974
  • 6
  • 30
  • 45