                         finishCallback(jsonDict)
                         
                         // Error
-                        if let errorCode = jsonDict["error_code"] , errorMessage = jsonDict["error_message"] {
-                            print("refreshToken - error:\(errorCode),\(errorMessage)")
-                        }
-                    }
-            }
-        }
-
-    }
-    
+                        self.printErrorInfo(jsonDict)
+                    }
+            }
+        }
+    }
+    
+    // MARK: Team
+    
+    /**
+    获取用户所在的团队列表
+    */
+    public func teams(finishCallback: ArrayCallback) {
+        if let accessToken = accessToken {
+            httpManager.request(.GET, self.requestURL("teams"), parameters: ["access_token":accessToken])
+                .responseJSON { (_, _, JSON, _) -> Void in
+                    if let jsonDict = JSON as? Array<Dictionary<String,AnyObject>> {
+                        
+                        // Success
+                        finishCallback(jsonDict)
+                        
+                        // Error
+                        self.printErrorInfo(jsonDict)
+                    }
+            }
+        }
+    }
+    
+    /**
+    获取团队信息
+    */
+    public func teamInfo(teamID: String, finishCallback: DictionaryCallback) {
+        if let accessToken = accessToken {
+            httpManager.request(.GET, self.requestURL("teams",item: teamID), parameters: ["access_token":accessToken])
+                .responseJSON { (_, _, JSON, _) -> Void in
+                    if let jsonDict = JSON as? Dictionary<String,AnyObject> {
+                        
+                        // Success
+                        finishCallback(jsonDict)
+                        
+                        // Error
+                        self.printErrorInfo(jsonDict)
+                    }
+            }
+        }
+    }
+    
+    
+    
+    // MARK: Util
+    
+    /**
+    构造请求的 URL (eg. /projects/:pid/members)
+    
+    :param: arg1 projects
+    :param: item :pid
+    :param: arg2 members
+    */
+    func requestURL(arg1: String, item: String = "", arg2: String = "") -> String {
+        var url = "https://api.worktile.com/v1/" + arg1 + "/"
+        
+        if item.characters.count > 0 {
+            url = url + item + "/"
+            
+            if arg2.characters.count > 0 {
+                url = url + arg2
+            }
+        }
+
+        return url
+    }
+    
+    /**
+    输出错误信息
+    
+    :param: responseJSON 请求返回的 JSON Dictionary
+    */
+    func printErrorInfo(responseJSON : AnyObject) {
+        if let errorCode = responseJSON["error_code"] , errorMessage = responseJSON["error_message"] {
+            print("refreshToken - error:\(errorCode),\(errorMessage)")
+        }
+    }
 }
 
 // MARK: Delegate

        }
    }
    
    // MARK: User
    
    /**

        httpManager = Alamofire.Manager(configuration: configuration)
    }
    
    
    // MARK: OAuth
    
    /**
    授权成功的回调
    */
    func authorizeComplate(authorizeCode: String?) {
        if let authorizeCode = authorizeCode {
            if authorizeCode.characters.count > 0 {
