[twitter-dev] Re: /friendships/destroy.json /blocks/blocking /blocking/ids

2009-08-30 Thread Ben Eliott

Ok, further to email below, i'm not able to post follow requests  
either, it comes back with success, but no database update seems to  
have occurred.
Pretty much looks  like any POST request just isn't happening, even  
though twitter is coming back with friendly responses.
Ben


On 29 Aug 2009, at 17:35, ben wrote:


 Couple of issues sprouting, i have been editing the code so i'm going
 back and back over for some error at my end, but it's looking mighty
 odd.

 It looks like:
 /friendships/destroy.json is not being updated
 blocks/blocking.json is not returning the same users as /blocks/
 blocking/ids.json


 Logging below. My ip for is 67.23.28.168 and times Europe/London.


 logging for friendships/destory:
 2009-08-29 17:10:56,702 - twitterauth.utils - INFO - twitter api exe.
 - https://twitter.com/friendships/destroy.json. kwargs={'screen_name':
 u'arthurcooke'} method=POST is_auth=True
 2009-08-29 17:10:57,166 - twitterauth.utils - DEBUG - api auth
 response, {u'id': 16612822, u'verified': False,
 u'profile_sidebar_fill_color': u'252429', u'profile_text_color':
 u'66', u'followers_count': 14, u'protected': True, u'location':
 u'Leeds, UK', u'profile_background_color': u'1A1B1F', u'status':
 {u'favorited': False, u'truncated': False, u'text': u'Relaxing in
 Aspen.', u'created_at': u'Mon Aug 10 22:45:51 + 2009', u'source':
 u'web', u'in_reply_to_status_id': None, u'in_reply_to_screen_name':
 None, u'in_reply_to_user_id': None, u'id': 3233921143}, u'utc_offset':
 0, u'statuses_count': 46, u'description': u'Runner, Mountain Biker,
 Science Teacher, Film Fan', u'friends_count': 18,
 u'profile_link_color': u'2FC2EF', u'profile_image_url': u'http://
 a3.twimg.com/profile_images/81150781/IMG_0320_normal.JPG',
 u'notifications': False, u'profile_background_image_url': u'http://
 s.twimg.com/a/1251493570/images/themes/theme9/bg.gif', u'screen_name':
 u'arthurcooke', u'profile_background_tile': False,
 u'favourites_count': 0, u'name': u'arthur cooke', u'url': None,
 u'created_at': u'Mon Oct 06 12:07:50 + 2008', u'time_zone':
 u'London', u'profile_sidebar_border_color': u'181A1E', u'following':
 True}

 then..not long later

 2009-08-29 17:10:59,746 - twitterauth.utils - INFO - twitter api exe.
 - https://twitter.com/statuses/friends.json. kwargs={'screen_name':
 u'b_e_n_', 'page': 1} method=GET is_auth=False

 the response is parsed and friends username listed in log..note
 including the one who was just destroyed.

 2009-08-29 17:11:00,206 - twittersearch.models - DEBUG - get current
 friends for b_e_n_ - [u'TomChivers', u'Love_London', u'Fast140',
 u'performativeweb', u'bbcbreaking', u'rhonafwelsh', u'danifromCO',
 u'elliottzone', u'maustyn', u'unstuckdesign', u'arthurcooke',
 u'jools2']


 logging for blocks/blocking, last few logs show 3 blocked users from
 blocking.json and 2 from ids.json:

 009-08-29 17:11:39,268 - twitterauth.utils - INFO - twitter api exe. -
 https://twitter.com/blocks/blocking.json. kwargs={'page': 1}
 method=GET is_auth=True

 2009-08-29 17:11:39,608 - twitterauth.utils - DEBUG - api auth
 response, [{u'id': 16803782, u'verified': False,
 u'profile_sidebar_fill_color': u'e0ff92', u'profile_text_color':
 u'00', u'followers_count': 8, u'protected': False, u'location':
 u'United States', u'profile_background_color': u'9ae4e8',
 u'utc_offset': -32400, u'statuses_count': 0, u'description': u':spends
 a lot of hours surfing the net', u'friends_count': 111,
 u'profile_link_color': u'ff', u'profile_image_url': u'http://
 a3.twimg.com/profile_images/
 62184497/212297864a2022621782b584997122l_normal.jpg',
 u'notifications': False, u'profile_background_image_url': u'http://
 s.twimg.com/a/1251493570/images/themes/theme1/bg.gif', u'screen_name':
 u'SARAH161008', u'profile_background_tile': False,
 u'favourites_count': 0, u'name': u'SARAH161008', u'url': u'http://MY-
 OWN-PAGE.TK', u'created_at': u'Thu Oct 16 07:03:12 + 2008',
 u'time_zone': u'Alaska', u'profile_sidebar_border_color': u'87bc44',
 u'following': False}, {u'id': 16804065, u'verified': False,
 u'profile_sidebar_fill_color': u'e0ff92', u'profile_text_color':
 u'00', u'followers_count': 7, u'protected': False, u'location':
 u'', u'profile_background_color': u'9ae4e8', u'utc_offset': -32400,
 u'statuses_count': 0, u'description': u':wants to GAIN weight!wants to
 try bungee jumping amp; sky diving (but im acrophobic)',
 u'friends_count': 84, u'profile_link_color': u'ff',
 u'profile_image_url': u'http://a1.twimg.com/profile_images/
 62185674/212297864a2698743034b849032084l_normal.jpg',
 u'notifications': False, u'profile_background_image_url': u'http://
 s.twimg.com/a/1251493570/images/themes/theme1/bg.gif', u'screen_name':
 u'JOYCE161008', u'profile_background_tile': False,
 u'favourites_count': 0, u'name': u'JOYCE161008', u'url': u'http://MY-
 OWN-PAGE.TK', u'created_at': u'Thu Oct 16 07:40:38 + 2008',
 u'time_zone': u'Alaska', u'profile_sidebar_border_color': u'87bc44',
 u'following': False}, 

[twitter-dev] Re: /friendships/destroy.json /blocks/blocking /blocking/ids

2009-08-30 Thread J. Dale

How are you calling twitter? Directly or via a wrapper like
EpiTwitter.  I had problems with EpiTwitter effectively caching
requests.  I had to go after particular elements in the result for it
to actually make/return the request.

On Aug 30, 4:47 am, Ben Eliott ben.apperr...@googlemail.com wrote:
 Ok, further to email below, i'm not able to post follow requests  
 either, it comes back with success, but no database update seems to  
 have occurred.
 Pretty much looks  like any POST request just isn't happening, even  
 though twitter is coming back with friendly responses.
 Ben

 On 29 Aug 2009, at 17:35, ben wrote:



  Couple of issues sprouting, i have been editing the code so i'm going
  back and back over for some error at my end, but it's looking mighty
  odd.

  It looks like:
  /friendships/destroy.json is not being updated
  blocks/blocking.json is not returning the same users as /blocks/
  blocking/ids.json

  Logging below. My ip for is 67.23.28.168 and times Europe/London.

  logging for friendships/destory:
  2009-08-29 17:10:56,702 - twitterauth.utils - INFO - twitter api exe.
  -https://twitter.com/friendships/destroy.json. kwargs={'screen_name':
  u'arthurcooke'} method=POST is_auth=True
  2009-08-29 17:10:57,166 - twitterauth.utils - DEBUG - api auth
  response, {u'id': 16612822, u'verified': False,
  u'profile_sidebar_fill_color': u'252429', u'profile_text_color':
  u'66', u'followers_count': 14, u'protected': True, u'location':
  u'Leeds, UK', u'profile_background_color': u'1A1B1F', u'status':
  {u'favorited': False, u'truncated': False, u'text': u'Relaxing in
  Aspen.', u'created_at': u'Mon Aug 10 22:45:51 + 2009', u'source':
  u'web', u'in_reply_to_status_id': None, u'in_reply_to_screen_name':
  None, u'in_reply_to_user_id': None, u'id': 3233921143}, u'utc_offset':
  0, u'statuses_count': 46, u'description': u'Runner, Mountain Biker,
  Science Teacher, Film Fan', u'friends_count': 18,
  u'profile_link_color': u'2FC2EF', u'profile_image_url': u'http://
  a3.twimg.com/profile_images/81150781/IMG_0320_normal.JPG',
  u'notifications': False, u'profile_background_image_url': u'http://
  s.twimg.com/a/1251493570/images/themes/theme9/bg.gif', u'screen_name':
  u'arthurcooke', u'profile_background_tile': False,
  u'favourites_count': 0, u'name': u'arthur cooke', u'url': None,
  u'created_at': u'Mon Oct 06 12:07:50 + 2008', u'time_zone':
  u'London', u'profile_sidebar_border_color': u'181A1E', u'following':
  True}

  then..not long later

  2009-08-29 17:10:59,746 - twitterauth.utils - INFO - twitter api exe.
  -https://twitter.com/statuses/friends.json. kwargs={'screen_name':
  u'b_e_n_', 'page': 1} method=GET is_auth=False

  the response is parsed and friends username listed in log..note
  including the one who was just destroyed.

  2009-08-29 17:11:00,206 - twittersearch.models - DEBUG - get current
  friends for b_e_n_ - [u'TomChivers', u'Love_London', u'Fast140',
  u'performativeweb', u'bbcbreaking', u'rhonafwelsh', u'danifromCO',
  u'elliottzone', u'maustyn', u'unstuckdesign', u'arthurcooke',
  u'jools2']

  logging for blocks/blocking, last few logs show 3 blocked users from
  blocking.json and 2 from ids.json:

  009-08-29 17:11:39,268 - twitterauth.utils - INFO - twitter api exe. -
 https://twitter.com/blocks/blocking.json. kwargs={'page': 1}
  method=GET is_auth=True

  2009-08-29 17:11:39,608 - twitterauth.utils - DEBUG - api auth
  response, [{u'id': 16803782, u'verified': False,
  u'profile_sidebar_fill_color': u'e0ff92', u'profile_text_color':
  u'00', u'followers_count': 8, u'protected': False, u'location':
  u'United States', u'profile_background_color': u'9ae4e8',
  u'utc_offset': -32400, u'statuses_count': 0, u'description': u':spends
  a lot of hours surfing the net', u'friends_count': 111,
  u'profile_link_color': u'ff', u'profile_image_url': u'http://
  a3.twimg.com/profile_images/
  62184497/212297864a2022621782b584997122l_normal.jpg',
  u'notifications': False, u'profile_background_image_url': u'http://
  s.twimg.com/a/1251493570/images/themes/theme1/bg.gif', u'screen_name':
  u'SARAH161008', u'profile_background_tile': False,
  u'favourites_count': 0, u'name': u'SARAH161008', u'url': u'http://MY-
  OWN-PAGE.TK', u'created_at': u'Thu Oct 16 07:03:12 + 2008',
  u'time_zone': u'Alaska', u'profile_sidebar_border_color': u'87bc44',
  u'following': False}, {u'id': 16804065, u'verified': False,
  u'profile_sidebar_fill_color': u'e0ff92', u'profile_text_color':
  u'00', u'followers_count': 7, u'protected': False, u'location':
  u'', u'profile_background_color': u'9ae4e8', u'utc_offset': -32400,
  u'statuses_count': 0, u'description': u':wants to GAIN weight!wants to
  try bungee jumping amp; sky diving (but im acrophobic)',
  u'friends_count': 84, u'profile_link_color': u'ff',
  u'profile_image_url': u'http://a1.twimg.com/profile_images/
  62185674/212297864a2698743034b849032084l_normal.jpg',
  u'notifications': False, 

[twitter-dev] Re: /friendships/destroy.json /blocks/blocking /blocking/ids

2009-08-30 Thread Ben Eliott


Hmm, no, a good idea though. i'm using a python wrapper, it's pretty  
exposed, i've cut out any cacheing in the course of debugging this  
issue.
Well, this looks like a bug with me, otherwise this list would be a  
whole lot more alive today.



On 30 Aug 2009, at 16:22, J. Dale wrote:



How are you calling twitter? Directly or via a wrapper like
EpiTwitter.  I had problems with EpiTwitter effectively caching
requests.  I had to go after particular elements in the result for it
to actually make/return the request.

On Aug 30, 4:47 am, Ben Eliott ben.apperr...@googlemail.com wrote:

Ok, further to email below, i'm not able to post follow requests
either, it comes back with success, but no database update seems to
have occurred.
Pretty much looks  like any POST request just isn't happening, even
though twitter is coming back with friendly responses.
Ben

On 29 Aug 2009, at 17:35, ben wrote:



Couple of issues sprouting, i have been editing the code so i'm  
going

back and back over for some error at my end, but it's looking mighty
odd.



It looks like:
/friendships/destroy.json is not being updated
blocks/blocking.json is not returning the same users as /blocks/
blocking/ids.json



Logging below. My ip for is 67.23.28.168 and times Europe/London.



logging for friendships/destory:
2009-08-29 17:10:56,702 - twitterauth.utils - INFO - twitter api  
exe.
-https://twitter.com/friendships/destroy.json.  
kwargs={'screen_name':

u'arthurcooke'} method=POST is_auth=True
2009-08-29 17:10:57,166 - twitterauth.utils - DEBUG - api auth
response, {u'id': 16612822, u'verified': False,
u'profile_sidebar_fill_color': u'252429', u'profile_text_color':
u'66', u'followers_count': 14, u'protected': True, u'location':
u'Leeds, UK', u'profile_background_color': u'1A1B1F', u'status':
{u'favorited': False, u'truncated': False, u'text': u'Relaxing in
Aspen.', u'created_at': u'Mon Aug 10 22:45:51 + 2009',  
u'source':

u'web', u'in_reply_to_status_id': None, u'in_reply_to_screen_name':
None, u'in_reply_to_user_id': None, u'id': 3233921143},  
u'utc_offset':

0, u'statuses_count': 46, u'description': u'Runner, Mountain Biker,
Science Teacher, Film Fan', u'friends_count': 18,
u'profile_link_color': u'2FC2EF', u'profile_image_url': u'http://
a3.twimg.com/profile_images/81150781/IMG_0320_normal.JPG',
u'notifications': False, u'profile_background_image_url': u'http://
s.twimg.com/a/1251493570/images/themes/theme9/bg.gif',  
u'screen_name':

u'arthurcooke', u'profile_background_tile': False,
u'favourites_count': 0, u'name': u'arthur cooke', u'url': None,
u'created_at': u'Mon Oct 06 12:07:50 + 2008', u'time_zone':
u'London', u'profile_sidebar_border_color': u'181A1E', u'following':
True}



then..not long later


2009-08-29 17:10:59,746 - twitterauth.utils - INFO - twitter api  
exe.

-https://twitter.com/statuses/friends.json. kwargs={'screen_name':
u'b_e_n_', 'page': 1} method=GET is_auth=False



the response is parsed and friends username listed in log..note
including the one who was just destroyed.



2009-08-29 17:11:00,206 - twittersearch.models - DEBUG - get current
friends for b_e_n_ - [u'TomChivers', u'Love_London', u'Fast140',
u'performativeweb', u'bbcbreaking', u'rhonafwelsh', u'danifromCO',
u'elliottzone', u'maustyn', u'unstuckdesign', u'arthurcooke',
u'jools2']



logging for blocks/blocking, last few logs show 3 blocked users from
blocking.json and 2 from ids.json:


009-08-29 17:11:39,268 - twitterauth.utils - INFO - twitter api  
exe. -

https://twitter.com/blocks/blocking.json. kwargs={'page': 1}
method=GET is_auth=True



2009-08-29 17:11:39,608 - twitterauth.utils - DEBUG - api auth
response, [{u'id': 16803782, u'verified': False,
u'profile_sidebar_fill_color': u'e0ff92', u'profile_text_color':
u'00', u'followers_count': 8, u'protected': False, u'location':
u'United States', u'profile_background_color': u'9ae4e8',
u'utc_offset': -32400, u'statuses_count': 0, u'description':  
u':spends

a lot of hours surfing the net', u'friends_count': 111,
u'profile_link_color': u'ff', u'profile_image_url': u'http://
a3.twimg.com/profile_images/
62184497/212297864a2022621782b584997122l_normal.jpg',
u'notifications': False, u'profile_background_image_url': u'http://
s.twimg.com/a/1251493570/images/themes/theme1/bg.gif',  
u'screen_name':

u'SARAH161008', u'profile_background_tile': False,
u'favourites_count': 0, u'name': u'SARAH161008', u'url': u'http:// 
MY-

OWN-PAGE.TK', u'created_at': u'Thu Oct 16 07:03:12 + 2008',
u'time_zone': u'Alaska', u'profile_sidebar_border_color': u'87bc44',
u'following': False}, {u'id': 16804065, u'verified': False,
u'profile_sidebar_fill_color': u'e0ff92', u'profile_text_color':
u'00', u'followers_count': 7, u'protected': False, u'location':
u'', u'profile_background_color': u'9ae4e8', u'utc_offset': -32400,
u'statuses_count': 0, u'description': u':wants to GAIN weight! 
wants to

try bungee jumping amp; sky diving (but im acrophobic)',
u'friends_count': 84,