well, i have some doubts here:

i am trying to make work some topics with REST php.

*-activities*

the post is failing, i am getting this error now (replaced userID with
'@viewer' constant):
*There was a 403 error with the createActivity request:*
*forbidden: Permission token validation failed.*

here is a dump of the request and the response:

*REQUEST:*
Array
(
    [0] => osapiRequest Object
        (
            [method] => activities.create
            [params] => Array
                (
                    [userId] => Array
                        (
                            [0] => @viewer
                        )

                    [groupId] => @self
                    [activity] => osapiActivity Object
                        (
                            [body] => osapi test activity body
                            [mediaItems] => Array
                                (
                                )

                            [title] => osapi test activity at 1303323630
                        )

                    [appId] => @app
                )

            [id] => createActivity
        )

)

*URL:*
http://prod.sandbox.orkut.com/social/rpc?oauth_nonce=f959f4d5ff2cef29fedd732e5d9427ad&oauth_version=1.0&oauth_timestamp=1303323630&oauth_consumer_key=orkut.com%3AMYKEY&xoauth_requestor_id=06064885595942683910&oauth_body_hash=RtEsYv5UsR8NI3Dqjh%2F0a03MGfk%3D&oauth_signature_method=HMAC-SHA1&oauth_signature=yr4IzSmSwWAa2%2Fio%2FD19FhsVyuY%3D
*RESPONSE:*
Array
(
    [0] => Array
        (
            [id] => createActivity
            [error] => Array
                (
                    [message] => forbidden: Permission token validation
failed.
                    [data] => Array
                        (
                            [errorType] => noPermissions
                        )
                    [code] => 403
                )
        )
)

this error can be related to the *state of my app*? actually is in "*
verified*" state, because i cant submit it since a couple of weeks.
some guidance on how to troubeshoot this error will be very welcome.

*
*
*-get User data with filters:*
is working the filtering by "has_app" ? i researched a lot and found (not in
orkut documentation) a possible way to do it with php opensocial client. but
this filter On or Off always return the same results.
and i am asking for this field in the request, but is not present in the
response.
see here:
*REQUEST:*
Array
(
    [0] => osapiRequest Object
        (
            [method] => people.get
            [params] => Array
                (
                    [userId] => Array
                        (
                            [0] => 6064885595942683910
                        )
                    [groupId] => @friends
                    [fields] =>
id,displayName,name,nickname,thumbnailUrl,birthday,gender,age,hasApp
                    [count] => 4000
                    [filterBy] => has_app
                    [filterOp] => equals
                    [filterValue] => true
                )
            [id] => friends
        )
)
*URL:*
http://prod.sandbox.orkut.com/social/rpc?oauth_nonce=23825d20cfbc814d17aca6f6b74d2430&oauth_version=1.0&oauth_timestamp=1303318305&oauth_consumer_key=orkut.com%3AMYKEY&xoauth_requestor_id=06064885595942683910&oauth_body_hash=j2SlkyKga6BpHAPIcHyfMG1qmCg%3D&oauth_signature_method=HMAC-SHA1&oauth_signature=gmAt3uqmS5DEC1mC9tlEKl7qHrM%3D
*RESPONSE:*
Array
(
    [0] => Array
        (
            [id] => friends
            [data] => Array
                (
                    [filtered] =>
                    [startIndex] => 0
                    [totalResults] => 2
                    [list] => Array
                        (
                            [0] => Array
                                (
                                    [id] => 01762475091457727086
                                    [thumbnailUrl] =>
http://static1.orkut.com/img/i_nophoto64.gif
                                    [name] => Array
                                        (
                                            [familyName] => Cauda
                                            [givenName] => Mauro
                                        )
                                    [displayName] => Mauro Cauda
                                )
                            [1] => Array
                                (
                                    [id] => 02194923479433398268
                                    [thumbnailUrl] =>
http://static1.orkut.com/img/i_nophoto64.gif
                                    [name] => Array
                                        (
                                            [familyName] => scattini
                                            [givenName] => ricardo
                                        )
                                    [displayName] => ricardo scattini
                                )
                        )
                    [updatedSince] =>
                )
        )
)


regards,


Roberto Scattini.

-- 
You received this message because you are subscribed to the Google Groups 
"orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com.
To unsubscribe from this group, send email to 
opensocial-orkut+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en.

Reply via email to