title: RestyGWT & GWT integration: Cannot GET Resource
body: <p><strong>OBJECTIVE:</strong></p>
  
  <p>I'm using GWT and trying to call an existing Twitter REST Service using RestyGWT client</p>
  
  <p><strong>PROBLEM:</strong></p>
  
  <p>I am not receiving a response to my GET request to "<a href="https://api.twitter.com/1.1/statuses/mentions_timeline.json" rel="nofollow">https://api.twitter.com/1.1/statuses/mentions_timeline.json</a>"</p>
  
  <p><strong>THINGS I'VE TRIED:</strong></p>
  
  <p>I've looked at RestyGWT's documentation, and I couldn't come across a concrete example on how to call third party REST services.
  Tried calling a REST service using plaintext return types, same problem.
  There must be something I'm doing wrong on a fundamental leve.</p>
  
  <p><strong>CODE:</strong></p>
  
  <p>Here's my onModuleLoad:</p>
  
  <pre><code>public void onModuleLoad() {
  
      Resource r = new Resource("https://api.twitter.com/1.1/statuses/mentions_timeline.json");
  
              r.get().send(new JsonCallback() {
  
                  @Override
                  public void onSuccess(Method method, JSONValue response) {
                      System.out.println("Twitter response:\tYES");
                      }
  
                  @Override
                  public void onFailure(Method method, Throwable exception) {
                      System.out.println("Twitter response:\tNO");
                      System.out.println("Exception:\t\t"+exception.toString());
                      System.out.println("Exception Message:\t"+exception.getMessage());
                      System.out.println("Status code:\t\t"+method.getResponse().getStatusCode() );
                      }
              });
  }
  </code></pre>
  
  <p><strong>OUTPUT:</strong></p>
  
  <pre><code>GWT MODULE LOADED
  Twitter response:   NO
  Exception:          org.fusesource.restygwt.client.FailedStatusCodeException: 
  Exception Message:  
  Status code:        0
  </code></pre>