Browse files

remove gh-api-v2 (end of life)

  • Loading branch information...
1 parent 565b8a0 commit b1c05229468595b09b9369b1770aa9cd3e24e38a @tarsius tarsius committed Oct 2, 2012
Showing with 1 addition and 21 deletions.
  1. +1 −3 README
  2. +0 −18 gh-api.el
View
4 README
@@ -4,9 +4,7 @@ Dependencies:
- pcache.el : https://github.com/sigma/pcache
- logito.el : https://github.com/sigma/logito
-The goal is to provide a consistent mapping for the various API versions (v2 and upcoming v3) so that client code might experience a smooth transition.
-
-This library also allows implementation of the various authentication schemes (password, API token, OAuth).
+This library also allows implementation of the various authentication schemes (password, OAuth).
Implementation is heavily based on EIEIO so that various components can be replaced easily.
View
18 gh-api.el
@@ -81,24 +81,6 @@
(oref (oref api :auth) :username))
;;;###autoload
-(defclass gh-api-v2 (gh-api)
- ((base :initarg :base :initform "https://github.com/api/v2/json")
- (data-format :initarg :data-format :initform :json)))
-
-(defcustom gh-api-v2-authenticator 'gh-oauth-authenticator
- "Authenticator for Github API v2"
- :type '(choice (const :tag "Password" gh-password-authenticator)
- (const :tag "OAuth" gh-oauth-authenticator))
- :group 'gh-api)
-
-(defmethod constructor :static ((api gh-api-v2) newname &rest args)
- (let ((obj (call-next-method)))
- (gh-api-set-default-auth obj
- (or (oref obj :auth)
- (funcall gh-api-v2-authenticator "auth")))
- obj))
-
-;;;###autoload
(defclass gh-api-v3 (gh-api)
((base :initarg :base :initform "https://api.github.com")
(data-format :initarg :data-format :initform :json))

0 comments on commit b1c0522

Please sign in to comment.