package com.alwaysallthetime.cloudpaste.client;

import com.alwaysallthetime.adnlib.AppDotNetClient;
import com.alwaysallthetime.adnlibutils.ADNSharedPreferences;
import com.alwaysallthetime.adnlibutils.ConfigurationUtility;

public class CloudPasteADNClient {
    public static final String CLIENT_ID = "ApLZCN8QxnG2D54JcnUkUApH88nLHZeC";
    public static final String AUTH_SCOPES = "basic,messages";

    private static AppDotNetClient sInstance;

    public static AppDotNetClient getInstance() {
        if(sInstance == null) {
            sInstance = new AppDotNetClient();

            if(ADNSharedPreferences.isLoggedIn()) {
                sInstance.setToken(ADNSharedPreferences.getAccessToken());
                ConfigurationUtility.updateConfiguration(sInstance);
            }
        }
        return sInstance;
    }
}

@@ -254,16 +254,46 @@
 lient %7B%0A
+    //stick a client id here.%0A
     publ
@@ -331,42 +331,12 @@
 D = 
-%22ApLZCN8QxnG2D54JcnUkUApH88nLHZeC%22
+null
 ;%0A  
@@ -444,16 +444,16 @@
 tance;%0A%0A
-
     publ
@@ -490,24 +490,175 @@
 nstance() %7B%0A
+        if(CLIENT_ID == null) %7B%0A            throw new RuntimeException(%22You gosta specify a value for CloudPasteADNClient.CLIENT_ID, bro.%22);%0A        %7D%0A
         if(s

throw runtime exception when client id is not set.