Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3b7720e
Showing
330 changed files
with
30,168 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
778c9f1a53b4b4b38e1d15d05c84cd91a033d53e 20 | ||
778c9f1a53b4b4b38e1d15d05c84cd91a033d53e default |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[paths] | ||
default = https://jmg.utn@pyfb.googlecode.com/hg/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added auth module; Refactorized code structure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
# MA 02110-1301, USA. | ||
|
||
__author__ = "Juan Manuel Garcia" | ||
__version__ = "0.3.1" | ||
__license__ = 'GPL v3' | ||
|
||
from pyfb import Pyfb |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
revlogv1 | ||
store | ||
fncache |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
data/.hgignore.i | ||
data/pyfb.py.i | ||
data/utils.py.i | ||
data/AUTHORS.txt.i | ||
data/README.txt.i | ||
data/example.py.i | ||
data/examples/basics.py.i | ||
data/src/pyfb.py.i | ||
data/setup.py.i | ||
data/src/utils.py.i | ||
data/upload.sh.i | ||
data/examples/djangoapp/__init__.py.i | ||
data/examples/djangoapp/django_pyfb/__init__.py.i | ||
data/examples/djangoapp/django_pyfb/models.py.i | ||
data/examples/djangoapp/django_pyfb/tests.py.i | ||
data/examples/djangoapp/django_pyfb/views.py.i | ||
data/examples/djangoapp/manage.py.i | ||
data/examples/djangoapp/settings.py.i | ||
data/examples/djangoapp/urls.py.i | ||
data/MANIFEST.i | ||
data/src/auth.py.i | ||
data/pyfb/__init__.py.i | ||
data/pyfb/auth.py.i | ||
data/pyfb/client.py.i | ||
data/pyfb/pyfb.py.i | ||
data/pyfb/utils.py.i |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
20 | ||
pull | ||
https://jmg.utn@pyfb.googlecode.com/hg/ |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# use glob syntax. | ||
syntax: glob | ||
|
||
*.elc | ||
*.pyc | ||
dist/* | ||
build/* | ||
env/* | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Juan Manuel García <jmg.utn@gmail.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
README.txt | ||
setup.py | ||
src/pyfb.py | ||
src/utils.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
***************************************************************** | ||
|
||
pyfb - A Python Interface to the facebook Graph API | ||
|
||
***************************************************************** | ||
|
||
This is an Easy to Use Python Interface to the Facebook Graph API | ||
|
||
It gives you methods to access your data on facebook and | ||
provides objects instead of json dictionaries! | ||
|
||
***************************************************************** | ||
|
||
Dependencies | ||
|
||
- simplejson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
# MA 02110-1301, USA. | ||
|
||
__author__ = "Juan Manuel Garcia" | ||
__version__ = "0.3.1" | ||
__license__ = 'GPL v3' | ||
|
||
from pyfb import Pyfb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
""" | ||
$Id: auth.py | ||
This file is a mapper for the specified permissions in | ||
http://developers.facebook.com/docs/reference/api/permissions/ | ||
""" | ||
|
||
#User related permissions | ||
|
||
USER_ABOUT_ME = "user_about_me" | ||
USER_ACTIVITIES = "user_activities" | ||
USER_BIRTHDAY = "user_birthday" | ||
USER_CHECKINS = "user_checkins" | ||
USER_EDUCATION_HISTORY = "user_education_history" | ||
USER_EVENTS = "user_events" | ||
USER_GROUPS = "user_groups" | ||
USER_HOMETOWN = "user_hometown" | ||
USER_INTERESTS = "user_interests" | ||
USER_LIKES = "user_likes" | ||
USER_LOCATION = "user_location" | ||
USER_NOTES = "user_notes" | ||
USER_ONLINE_PRESENCE = "user_online_presence" | ||
USER_PHOTO_VIDEO_TAGS = "user_photo_video_tags" | ||
USER_PHOTOS = "user_photos" | ||
USER_RELATIONSHIPS = "user_relationships" | ||
USER_RELATIONSHIP_DETAILS = "user_relationship_details" | ||
USER_RELIGION_POLITICS = "user_religion_politics" | ||
USER_STATUS = "user_status" | ||
USER_VIDEOS = "user_videos" | ||
USER_WEBSITE = "user_website" | ||
USER_WORK_HISTORY = "user_work_history" | ||
USER_EMAIL = "email" | ||
USER_READ_FRIENDLISTS = "read_friendlists" | ||
USER_READ_INSIGHTS = "read_insights" | ||
USER_READ_MAILBOX = "read_mailbox" | ||
USER_READ_REQUESTS = "read_requests" | ||
USER_READ_STREAM = "read_stream" | ||
USER_XMPP_LOGIN = "xmpp_login" | ||
USER_ADS_MANAGEMENT = "ads_management" | ||
|
||
vars = locals().copy() | ||
USER_ALL_PERMISSIONS = [value for key, value in vars.iteritems() if key.startswith("USER_")] | ||
|
||
#Friends related permissions | ||
|
||
FRIENDS_ABOUT_ME = "friends_about_me" | ||
FRIENDS_ACTIVITIES = "friends_activities" | ||
FRIENDS_BIRTHDAY = "friends_birthday" | ||
FRIENDS_CHECKINS = "friends_checkins" | ||
FRIENDS_EDUCATION_HISTORY = "friends_education_history" | ||
FRIENDS_EVENTS = "friends_events" | ||
FRIENDS_GROUPS = "friends_groups" | ||
FRIENDS_HOMETOWN = "friends_hometown" | ||
FRIENDS_INTERESTS = "friends_interests" | ||
FRIENDS_LIKES = "friends_likes" | ||
FRIENDS_LOCATION = "friends_location" | ||
FRIENDS_NOTES = "friends_notes" | ||
FRIENDS_ONLINE_PRESENCE = "friends_online_presence" | ||
FRIENDS_PHOTO_VIDEO_TAGS = "friends_photo_video_tags" | ||
FRIENDS_PHOTOS = "friends_photos" | ||
FRIENDS_RELATIONSHIPS = "friends_relationships" | ||
FRIENDS_RELATIONSHIP_DETAILS = "friends_relationship_details" | ||
FRIENDS_RELIGION_POLITICS = "friends_religion_politics" | ||
FRIENDS_STATUS = "friends_status" | ||
FRIENDS_VIDEOS = "friends_videos" | ||
FRIENDS_WEBSITE = "friends_website" | ||
FRIENDS_WORK_HISTORY = "friends_work_history" | ||
|
||
vars = locals().copy() | ||
FRIENDS_ALL_PERMISSIONS = [value for key, value in vars.iteritems() if key.startswith("FRIENDS_")] | ||
|
||
#Write related permissions | ||
|
||
WRITE_PUBLISH_STREAM = "publish_stream" | ||
WRITE_CREATE_EVENT = "create_event" | ||
WRITE_RSVP_EVENT = "rsvp_event" | ||
WRITE_SMS = "sms" | ||
WRITE_OFFLINE_ACCESS = "offline_access" | ||
WRITE_PUBLISH_CHECKINS = "publish_checkins" | ||
WRITE_MANAGE_FRIENDLISTS = "manage_friendlists" | ||
|
||
vars = locals().copy() | ||
WRITE_ALL_PERMISSIONS = [value for key, value in vars.iteritems() if key.startswith("WRITE_")] | ||
|
||
#Page related permissions | ||
|
||
PAGE_MANAGE_PAGES = "manage_pages" | ||
|
||
vars = locals().copy() | ||
PAGE_ALL_PERMISSIONS = [value for key, value in vars.iteritems() if key.startswith("PAGE_")] | ||
|
||
#All permisssions | ||
ALL_PERMISSIONS = USER_ALL_PERMISSIONS + FRIENDS_ALL_PERMISSIONS + WRITE_ALL_PERMISSIONS + PAGE_ALL_PERMISSIONS | ||
|
Oops, something went wrong.