From the course: Android Development: Retrofit with Java

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Form URL encoding

Form URL encoding - Android Tutorial

From the course: Android Development: Retrofit with Java

Start my 1-month free trial

Form URL encoding

- [Instructor] Sometimes, an API will require you - [Instructor] Sometimes, an API will require you - [Instructor] Sometimes, an API will require you to form URL encode the data you send to it, to form URL encode the data you send to it, to form URL encode the data you send to it, instead of something like JSON or XML. instead of something like JSON or XML. instead of something like JSON or XML. This means that the API will be looking for This means that the API will be looking for This means that the API will be looking for all of the data in the URL as key value pairs, all of the data in the URL as key value pairs, all of the data in the URL as key value pairs, just like query parameters. just like query parameters. just like query parameters. Let's add a new method Let's add a new method Let's add a new method to the GitHub service interface in the sample project, to the GitHub service interface in the sample project, to the GitHub service interface…

Contents