Skip to content

Commit

Permalink
Init setup for class
Browse files Browse the repository at this point in the history
  • Loading branch information
nmohoric committed Apr 11, 2013
1 parent f4f348c commit 2f44d78
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions nypl-collections.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env python

class NYPLsearch:
def __init__(self,token=None):
self.token = token or ""

try:
assert self.token
except:
AssertionError:
print "You will need to use your Authenticaton Token.\n
This can be retrieved at http://api.repo.nypl.org/sign_up"

self.base = "http://api.repo.nypl.org/api/v1/items"


0 comments on commit 2f44d78

Please sign in to comment.