title: Send POST parameters with Retrofit
body: <p>I am trying to implement a POST request via Retrofit, but the approach seems to be wrong, I guess. I followed the steps I used for GET request:</p>
  
  <p>I defined the end point: </p>
  
  <pre><code> public interface GitHubEmailAPI {
  
      @POST("/users/{user}")
      Call&lt;GitHubEmail&gt; postEmail(@Field("email") String email);
  }
  </code></pre>
  
  <p>The model:</p>
  
  <pre><code>    public class GitHubEmail {
  
      @SerializedName("email")
      private String email;
  
      public String getEmail() {
          return email;
      }
  
      public void setEmail(String email) {
          this.email = email;
      }
  }
  </code></pre>
  
  <p>And the calling:</p>
  
  <pre><code> public void postEmail (){
      GitHubEmailAPI apiService =
              ApiClient.getClient().create(GitHubEmailAPI.class);
  
      final Call&lt;GitHubEmail&gt; callEmail = apiService.postEmail
              (String.valueOf(enterEmailEt.getText()));
  
      callEmail.enqueue(new Callback&lt;GitHubEmail&gt;() {
          @Override
          public void onResponse(Call&lt;GitHubEmail&gt; call, Response&lt;GitHubEmail&gt; response) {
              testTV.setText(callEmail.toString());
          }
  
          @Override
          public void onFailure(Call&lt;GitHubEmail&gt; call, Throwable t) {
              Log.e("Email", t.toString());
  
          }
      });
  </code></pre>
  
  <p>I am using the github api as a test, not sure if the access token needs to be included as a parameter in the request.</p>