@@ -0,0 +1,1305 @@
+package com.expidev.gcmapp.http;%0A%0Aimport android.os.AsyncTask;%0Aimport android.util.Log;%0A%0Aimport me.thekey.android.TheKey;%0A%0A/**%0A * Created by matthewfrederick on 1/15/15.%0A */%0Apublic class TicketTask extends AsyncTask%3CObject, Void, String%3E%0A%7B%0A    private final String TAG = this.getClass().getSimpleName();%0A    %0A    private TicketTaskHandler taskHandler;%0A    String ticket;%0A    %0A    public static interface TicketTaskHandler%0A    %7B%0A        void taskComplete(String ticket);%0A        void taskFailed();%0A    %7D%0A    %0A    public TicketTask(TicketTaskHandler listener)%0A    %7B%0A        taskHandler = listener;        %0A    %7D%0A    %0A    @Override%0A    protected String doInBackground(Object... params)%0A    %7B%0A        String urlString = params%5B0%5D.toString();%0A        TheKey theKey = (TheKey) params%5B1%5D;%0A        %0A        Log.i(TAG, %22url: %22 + urlString);%0A        %0A        try%0A        %7B%0A            ticket = theKey.getTicket(urlString);%0A            Log.i(TAG, ticket);%0A        %7D%0A        catch (Exception e)%0A        %7B%0A            Log.e(TAG, e.getMessage(), e);%0A        %7D%0A        %0A        %0A        return null;%0A    %7D%0A%0A    @Override%0A    protected void onPostExecute(String s)%0A    %7B%0A        super.onPostExecute(s);%0A        %0A        if (ticket != null) taskHandler.taskComplete(ticket);%0A        else taskHandler.taskFailed();%0A    %7D%0A%7D%0A

Create TicketTask.java