i have an array:
Array
(
[0] => BugHerd_Project Object
(
[id:BugHerd_Project:private] => 24323
[name:BugHerd_Project:private] => bugherd a
[devurl:BugHerd_Project:private] => http://st.com/a/
[active:BugHerd_Project:private] => 1
[created:BugHerd_Project:private] => DateTime Object
(
[date] => 2014-05-03 11:15:22
[timezone_type] => 2
[timezone] => Z
)
[updated:BugHerd_Project:private] => DateTime Object
(
[date] => 2014-05-05 06:55:52
[timezone_type] => 2
[timezone] => Z
)
)
)
1. my code of accessing this array is:
- in this code im just fetching data from api .its simple http authentication code
- im using php wrapper here is the link :https://github.com/spekkionu/bugherd.
from the api documentation they mention :curl -u api_key:x https://www.bugherd.com/api_v2/projects/1.json
$api = new BugHerd_Api($email,$password); $projects = $api->listProjects(); $i=0; on doing print_r($projects[$i]['id:BugHerd_Project:private']);its result me error so how should i access this array.