     
         getCredencial_ : (name)=>
             return @cache[name] if @cache && @cache[name]
-    
             credencial = @prop.getProperty("SLACK_credencial#{@option.name}")
             return null if !credencial?
             @cache = JSON.parse credencial
             return @cache[name]
-        
         # authorize : ()=>
         #     res = @uox => UrlFetchApp.fetch "#{@API_ENDPOINT}/oauth.access" ,
         #         method : "post"

                    code : code
            @prop.setProperty("SLACK_credencial#{@option.name}", res.getContentText())
            return JSON.parse(res.getContentText()).access_token
    
        getAuthorizeUrl : (callback,optArg) =>
            redirectUri = @getCallbackURL(callback, optArg)
            @prop.setProperty("SLACK_redirectURI#{@option.name}", redirectUri)
            "#{@AUTH_ENDPOINT}?client_id=#{@clientId}&scope=#{@scopes.join(',')}&response_type=code&redirect_uri=#{redirectUri}"
    
    
        getCallbackURL : (callback,optArg = {}) ->
            url = ScriptApp.getService().getUrl()
            if url.indexOf("/exec") >= 0

        #             scope : @scopes.join(",")
        #     @prop.setProperty("SLACK_credencial#{@option.name}", res.getContentText())
        #     return JSON.parse(res.getContentText()).access_token
        saveAccessToken : (code)=>
            res = @uox => UrlFetchApp.fetch "#{@API_ENDPOINT}oauth.access" ,
                method : "post"
