Reputation: 1556
I need all the past events of friends for last year, since parameter is working fine, and it is responding me the results with minimal fields,
{
name: "Who's up for an amazing spectacular party in Dubai?",
start_time: "2012-12-07T18:00:00+0400",
end_time: "2012-12-08T06:00:00+0400",
timezone: "Asia/Dubai",
location: "Dubai, United Arab Emirates",
id: "420084958028590",
rsvp_status: "attending"
},
I need to add other fields to,
Tried like this,
array('method' => 'GET',
'relative_url' => $user_id.'/statuses/?since='.strtotime('2010-01-01'),
# 'relative_url' => $user_id.'/events/',
#'fields' => 'name,end_time,owner'
),
);
--
array('method' => 'GET',
'relative_url' => $user_id.'/statuses/?fields=name,end_time,owner&since='.strtotime('2010-01-01'),
),
);
Upvotes: 0
Views: 133
Reputation: 1556
after some hit and trial,
it worked with url encoding the relative_url parameter,
array('method' => 'GET',
'relative_url' => urlencode($userId.'/events/?fields=name,end_time,owner&since='.strtotime('2010-01-01')),
),
);
Upvotes: 2