Exemplo n.º 1
0
    public void AsyncApp42Api()
    {
        ServiceAPI sp = new ServiceAPI("43f6b65747952492b5e30056ac9539ef7c50b44c4178e7c361cfa3b20ee52095", "e09348180158fb9304906d696dec68b3e2f074747a09ec93284271627f7c2599");

        this.userService    = sp.BuildUserService();
        this.storageService = sp.BuildStorageService();
        this.pushService    = sp.BuildPushNotificationService();
        this.socialService  = sp.BuildSocialService();
    }
Exemplo n.º 2
0
    private void Initialize()
    {
        if (userService == null)
        {
            userService = serviceAPI.BuildUserService();
        }

        if (socialService == null)
        {
            socialService = serviceAPI.BuildSocialService();
        }
    }
Exemplo n.º 3
0
    void OnGUI()
    {
        if (Time.time % 2 < 1)
        {
            success = callBack.getResult();
        }

        // For Setting Up ResponseBox.
        GUI.TextArea(new Rect(10, 5, 1300, 175), success);


        //=======================================SOCIAL_SERVICE=======================================

        if (GUI.Button(new Rect(50, 200, 200, 30), "LinkUserFacebookAccount"))
        {
            socialService = sp.BuildSocialService();                     // Initializing Social Service.
            socialService.LinkUserFacebookAccount(userName, fbAccessToken, appId, appSecret, callBack);
        }

        //=======================================SOCIAL_SERVICE=======================================

        if (GUI.Button(new Rect(260, 200, 200, 30), "LinkUserFacebookAccountAcsTkn"))
        {
            socialService = sp.BuildSocialService();                     // Initializing Social Service.
            socialService.LinkUserFacebookAccount(userName, fbAccessToken, callBack);
        }

        //=======================================SOCIAL_SERVICE=======================================

        if (GUI.Button(new Rect(470, 200, 200, 30), "UpdateFacebookStatus"))
        {
            socialService = sp.BuildSocialService();                     // Initializing Social Service.
            socialService.UpdateFacebookStatus(userName, status, callBack);
        }

        //=======================================SOCIAL_SERVICE=======================================

        if (GUI.Button(new Rect(680, 200, 200, 30), "LinkUserTwitterAccount"))
        {
            socialService = sp.BuildSocialService();                     // Initializing Social Service.
            socialService.LinkUserTwitterAccount(userName, accessToken, accessTokenSecret, callBack);
        }

        //=======================================SOCIAL_SERVICE=======================================

        if (GUI.Button(new Rect(890, 200, 200, 30), "LinkUserTwitterAccount"))
        {
            socialService = sp.BuildSocialService();                     // Initializing Social Service.
            socialService.LinkUserTwitterAccount(userName, accessToken, accessTokenSecret, consumerKey, consumerSecret, callBack);
        }

        //=======================================SOCIAL_SERVICE=======================================

        if (GUI.Button(new Rect(50, 250, 200, 30), "UpdateTwitterStatus"))
        {
            socialService = sp.BuildSocialService();                     // Initializing Social Service.
            socialService.UpdateTwitterStatus(userName, status, callBack);
        }

        //=======================================SOCIAL_SERVICE=======================================

        if (GUI.Button(new Rect(260, 250, 200, 30), "LinkUserLinkedInAccount"))
        {
            socialService = sp.BuildSocialService();                     // Initializing Social Service.
            socialService.LinkUserLinkedInAccount(userName, linkedinAccessToken, linkedinAccessTokenSecret, linkedinApiKey, linkedinSecretKey, callBack);
        }

        //=======================================SOCIAL_SERVICE=======================================

        if (GUI.Button(new Rect(470, 250, 200, 30), "LinkUserLinkedInAccount"))
        {
            socialService = sp.BuildSocialService();                     // Initializing Social Service.
            socialService.LinkUserLinkedInAccount(userName, accessToken, accessTokenSecret, callBack);
        }

        //=======================================SOCIAL_SERVICE=======================================

        if (GUI.Button(new Rect(680, 250, 200, 30), "UpdateLinkedInStatus"))
        {
            socialService = sp.BuildSocialService();                     // Initializing Social Service.
            socialService.UpdateLinkedInStatus(userName, status, callBack);
        }

        //=======================================SOCIAL_SERVICE=======================================

        if (GUI.Button(new Rect(890, 250, 200, 30), "UpdateSocialStatusForAll"))
        {
            socialService = sp.BuildSocialService();                     // Initializing Social Service.
            socialService.UpdateSocialStatusForAll(userName, status, callBack);
        }

        //=======================================SOCIAL_SERVICE=======================================

        if (GUI.Button(new Rect(50, 300, 200, 30), "GetFacebookFriendsFromLinkUser"))
        {
            socialService = sp.BuildSocialService();                     // Initializing Social Service.
            socialService.GetFacebookFriendsFromLinkUser(userName, callBack);
        }

        //=======================================SOCIAL_SERVICE=======================================

        if (GUI.Button(new Rect(260, 300, 200, 30), "GetFacebookFriendsFromAccessToken"))
        {
            socialService = sp.BuildSocialService();                     // Initializing Social Service.
            socialService.GetFacebookFriendsFromAccessToken(accessToken, callBack);
        }
    }