asimkumar2222 / opensocial-php-client Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/opensocial-php-client
License: Apache License 2.0
Automatically exported from code.google.com/p/opensocial-php-client
License: Apache License 2.0
Index: src/osapi/io/osapiCurlProvider.php
===================================================================
--- src/osapi/io/osapiCurlProvider.php (revision 88)
+++ src/osapi/io/osapiCurlProvider.php (working copy)
@@ -44,8 +44,9 @@
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, $ua);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- if ($headers && is_array($headers)) {
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
+ if ($headers) {
+ curl_setopt($ch, CURLOPT_HEADER, true);
}
$data = @curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
Original issue reported on code.google.com by [email protected]
on 18 Mar 2009 at 12:15
Currently, the tests rely on different keys and gadgets for each container.
Let's standardize all of the online tests to use this gadget:
http://opensocial-php-client.googlecode.com/svn/gadgets/opensocial-
php-client.xml
We should get this gadget in production on as many containers as possible.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 5 Jun 2009 at 2:53
I'd like to suggest a generic REST call that could be easily added to
allow calls to container API's that are outside the scope of OpenSocial.
For example, MySpace allows you to update your status by making a REST
call to http://api.myspace.com/v1/users/<userId>/status
So in osapi, we could make a call similar to this:
$osapi->rest_call->('http://api.myspace.com/v1/users/'.$userId.'/status',
array('status' => 'This is my brand new status'), 'PUT');
Note: MySpace requires this to be sent as a 'PUT'. Other functions should
use a 'GET' or 'POST', so we allow that to be specified in our call.
Original issue reported on code.google.com by [email protected]
on 17 Jun 2009 at 1:17
The 'vanilla' client library is OpenSocial spec compliant, but some major
implementations are not. Add code to allow for generating "patched" client
library instances that address issues on live containers where workarounds
are possible.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 20 Feb 2009 at 7:08
[deleted issue]
Not sure if this is needed, but we could add support for using a token for
each oauth request.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 17 Dec 2008 at 7:39
Index: src/osapi/providers/osapiProvider.php
===================================================================
--- src/osapi/providers/osapiProvider.php (revision 88)
+++ src/osapi/providers/osapiProvider.php (working copy)
@@ -22,6 +22,7 @@
require_once "osapiOrkutProvider.php";
require_once "osapiPartuzaProvider.php";
require_once "osapiXrdsProvider.php";
+require_once "osapiFriendConnectProvider.php";
/**
* The osapiProvider class is used to define your OAuth and OpenSocial API
endpoints
Index: src/osapi/providers/osapiFriendConnectProvider.php
===================================================================
--- src/osapi/providers/osapiFriendConnectProvider.php (revision 0)
+++ src/osapi/providers/osapiFriendConnectProvider.php (revision 0)
@@ -0,0 +1,30 @@
+<?php
+/*
+ * Copyright 2008 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Pre-defined provider class for Orkut (www.orkut.com)
+ * Note: Orkut currently only supports the SecurityToken and
+ * 2-legged OAuth auth methods, and it doesn't support the
+ * activities end-point.
+ * @author Chris Chabot
+ */
+class osapiFriendConnectProvider extends osapiProvider {
+
+ public function __construct(osapiHttpProvider $httpProvider = null) {
+ parent::__construct(null, null, null,
'http://www.google.com/friendconnect/api', null, "FriendConnect", true,
$httpProvider);
+ }
+}
Still im getting 404 :S
Original issue reported on code.google.com by [email protected]
on 18 Mar 2009 at 1:07
What steps will reproduce the problem?
1. Downloading the package
2. Check folder osapi\providers
3. All other provider classes are here but not the netlog provider class
What is the expected output? What do you see instead?
As the file is not present calling '$provider = new osapiNetlogProvider();'
causes an error.
What version of the product are you using? On what operating system?
OpenSocial PHP Client 1.0.1 (zip) - Linux
Include the class in the download package
Original issue reported on code.google.com by [email protected]
on 17 Jul 2009 at 3:33
Incorrect configurations should throw errors.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 17 Dec 2008 at 7:34
Only sign a request once
Original issue reported on code.google.com by api.kurrik%[email protected]
on 17 Dec 2008 at 7:38
What steps will reproduce the problem?
1.send message not working
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
1.0.1
Please provide any additional information below.
There was a 400 error with the createMessage request:
<HTML>
<HEAD>
<TITLE>Message Type not specified</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Message Type not specified</H1>
<H2>Error 400</H2>
</BODY>
</HTML>
Original issue reported on code.google.com by [email protected]
on 11 Jun 2009 at 7:34
Index: src/osapi/auth/osapiOAuth3Legged.php
===================================================================
--- src/osapi/auth/osapiOAuth3Legged.php (revision 88)
+++ src/osapi/auth/osapiOAuth3Legged.php (working copy)
@@ -181,6 +181,11 @@
*/
protected function requestRequestToken() {
$requestTokenRequest =
OAuthRequest::from_consumer_and_token($this->consumerToken, NULL, "GET",
$this->provider->requestTokenUrl, array());
+ if(is_array($this->provider->requestTokenParams)){
+ foreach($this->provider->requestTokenParams as $key => $value) {
+ $requestTokenRequest->set_parameter($key, $value);
+ }
+ }
$requestTokenRequest->sign_request($this->signatureMethod,
$this->consumerToken, NULL);
return osapiIO::send($requestTokenRequest, 'GET',
$this->provider->httpProvider);
Original issue reported on code.google.com by [email protected]
on 18 Mar 2009 at 12:09
Names are currently just associative arrays. Create a class to represent
names.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 17 Dec 2008 at 7:44
What steps will reproduce the problem?
1. Currently there is no support of batching requests
2. RPC offers capability to submit of series of requests in batch mode
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by api.sh%[email protected]
on 9 Dec 2008 at 7:47
Add a hi5 provider to the library
Original issue reported on code.google.com by api.kurrik%[email protected]
on 11 May 2009 at 4:29
This is the result of that test, looks like it needs to be modified slightly:
1) testCreate(osapiActivitiesTest)
Failed asserting that two strings are equal.
expected string
<[{"method":"activities.create","params":{"userId":["03067092798963641994"],"gro
upId":"@friends","activity":{"body":"osapi
test activity body","title":"osapi test activity at 1244742934"}},"id":null}]>
difference <
xxxxxxxxxxxxx???????????????>
got string
<[{"method":"activities.create","params":{"userId":["03067092798963641994"],"gro
upId":"@friends","activity":{"body":"osapi
test activity body","title":"osapi test activity at
1244742934"},"appId":"@app"},"id":null}]>
/Users/kurrik/workspace/opensocial-php-client/trunk/test/service/osapiActivities
Test.php:87
Original issue reported on code.google.com by [email protected]
on 11 Jun 2009 at 5:56
I get this error when trying to run the most recent library version (as of
revision 173) on PHP 5.2.5.
Original issue reported on code.google.com by aradzivanovich
on 22 Jul 2009 at 1:14
What steps will reproduce the problem?
1. The currently implementation does not allow HTTPS URL's:
What is the expected output? What do you see instead?
Support for HTTPS
Please use labels and text to provide additional information.
Original issue reported on code.google.com by api.sh%[email protected]
on 9 Dec 2008 at 7:42
The client library currently does not support activities.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 17 Dec 2008 at 7:48
Add support for RSA
Original issue reported on code.google.com by api.kurrik%[email protected]
on 17 Dec 2008 at 7:34
Add support for invalidation, based off of the 0.9 spec
Original issue reported on code.google.com by api.kurrik%[email protected]
on 10 Jun 2009 at 6:13
The tests in /trunk/test/online/ need to include an MessagesTest.php test
suite.
Operations to test:
get
create
Original issue reported on code.google.com by api.kurrik%[email protected]
on 25 Mar 2009 at 12:21
Had to make the "parameters" member on the OAuthRequest object public to
fix a body signing bug. Once this bug is fixed, revert the library back to
the standard OAuth library.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 17 Dec 2008 at 7:40
Running the unit tests currently has several errors which should be fixed.
The issue is that a HttpProvider is not being passed to the
PartuzaProvider in line 45 of
http://code.google.com/p/opensocial-php-client/source/browse/trunk/test/auth/osa
piOAuth3LeggedTest.php
Test output:
There were 5 errors:
1) test__construct(osapiOAuth3LeggedTest)
Argument 1 passed to osapiPartuzaProvider::__construct() must be an
instance of osapiHttpProvider, string given, called in
/Users/kurrik/workspace/opensocial-php-client/trunk/src/osapi/providers/osapiPar
tuzaProvider.php
on line 49 and defined
/Users/kurrik/workspace/opensocial-php-client/trunk/src/osapi/providers/osapiPar
tuzaProvider.php:23
/Users/kurrik/workspace/opensocial-php-client/trunk/src/osapi/providers/osapiPar
tuzaProvider.php:49
/Users/kurrik/workspace/opensocial-php-client/trunk/test/auth/osapiOAuth3LeggedT
est.php:45
2) testObtainRequestTokenSuccess(osapiOAuth3LeggedTest)
Argument 1 passed to osapiPartuzaProvider::__construct() must be an
instance of osapiHttpProvider, string given, called in
/Users/kurrik/workspace/opensocial-php-client/trunk/src/osapi/providers/osapiPar
tuzaProvider.php
on line 49 and defined
/Users/kurrik/workspace/opensocial-php-client/trunk/src/osapi/providers/osapiPar
tuzaProvider.php:23
/Users/kurrik/workspace/opensocial-php-client/trunk/src/osapi/providers/osapiPar
tuzaProvider.php:49
/Users/kurrik/workspace/opensocial-php-client/trunk/test/auth/osapiOAuth3LeggedT
est.php:45
3) testObtainRequestTokenFail(osapiOAuth3LeggedTest)
Argument 1 passed to osapiPartuzaProvider::__construct() must be an
instance of osapiHttpProvider, string given, called in
/Users/kurrik/workspace/opensocial-php-client/trunk/src/osapi/providers/osapiPar
tuzaProvider.php
on line 49 and defined
/Users/kurrik/workspace/opensocial-php-client/trunk/src/osapi/providers/osapiPar
tuzaProvider.php:23
/Users/kurrik/workspace/opensocial-php-client/trunk/src/osapi/providers/osapiPar
tuzaProvider.php:49
/Users/kurrik/workspace/opensocial-php-client/trunk/test/auth/osapiOAuth3LeggedT
est.php:45
4) testUpgradeRequestTokenSuccess(osapiOAuth3LeggedTest)
Argument 1 passed to osapiPartuzaProvider::__construct() must be an
instance of osapiHttpProvider, string given, called in
/Users/kurrik/workspace/opensocial-php-client/trunk/src/osapi/providers/osapiPar
tuzaProvider.php
on line 49 and defined
/Users/kurrik/workspace/opensocial-php-client/trunk/src/osapi/providers/osapiPar
tuzaProvider.php:23
/Users/kurrik/workspace/opensocial-php-client/trunk/src/osapi/providers/osapiPar
tuzaProvider.php:49
/Users/kurrik/workspace/opensocial-php-client/trunk/test/auth/osapiOAuth3LeggedT
est.php:45
5) testUpgradeRequestTokenFail(osapiOAuth3LeggedTest)
Argument 1 passed to osapiPartuzaProvider::__construct() must be an
instance of osapiHttpProvider, string given, called in
/Users/kurrik/workspace/opensocial-php-client/trunk/src/osapi/providers/osapiPar
tuzaProvider.php
on line 49 and defined
/Users/kurrik/workspace/opensocial-php-client/trunk/src/osapi/providers/osapiPar
tuzaProvider.php:23
/Users/kurrik/workspace/opensocial-php-client/trunk/src/osapi/providers/osapiPar
tuzaProvider.php:49
/Users/kurrik/workspace/opensocial-php-client/trunk/test/auth/osapiOAuth3LeggedT
est.php:45
Original issue reported on code.google.com by api.kurrik%[email protected]
on 14 May 2009 at 1:26
The messaging calls in 0.9 are not compatible with 0.8 and earlier. Once
issue 40 is implemented, the messaging calls (and any other
backwards-incompatible calls) should be rewritten to conditionally support
different versions of OpenSocial.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 10 Jun 2009 at 6:18
The library assumes JSON for the moment. Add XML and ATOM support.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 17 Dec 2008 at 7:42
I've setup the osapi php client on my project.
I can for example query the logged user or his friends.
I'm using Google Friend Connect as my provider.
Like:
$batch=$this->osapi->newBatch();
$user_params=array(
"userId"=>"@me", // query the logged user
"groupId"=>"@self" // get logger users information
);
$batch->add($this->osapi->people->get($user_params),"self");
$response=$batch->execute(); // execute the job
$this->user=$response["self"]; // store the user for feature access
return $response["self"];
This works out for me.
The problem is that i can't read activities nor create one:
$batch=$this->osapi->newBatch();
$user_params=array(
"userId"=>"@me", // query the logged user
"groupId"=>"@self" // get logger users information
);
$batch->add($this->osapi->activities->get($user_params),"userActivities");
$response=$batch->execute(); // execute the job
print_r($response);
the response is:
Array
(
[userActivities] => osapiError Object
(
[errorCode:private] => 500
[errorMessage:private] => <HTML>
<HEAD>
<TITLE>Internal Server Error</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Internal Server Error</H1>
<H2>Error 500</H2>
</BODY>
</HTML>
[response] =>
)
)
Also trying to create one:
// Create an activity (you could add osapiMediaItems to this btw)
$batch=$this->osapi->newBatch();
$activity = new osapiActivity(null, null);
$activity->setTitle('osapi test activity at ' . time());
$activity->setBody('osapi test activity body');
$create_params = array(
'userId' => "@me",
'groupId' => '@self',
'activity' => $activity
);
$batch->add($this->osapi->activities->create($create_params),
'createActivity');
$result = $batch->execute();
print_r($result);
The response is:
Array
(
[createActivity] => osapiError Object
(
[errorCode:private] => 400
[errorMessage:private] =>
..
<H1>Bad Request</H1>
Your client has issued a malformed or illegal request.
Is it something with my code or the provider?
Original issue reported on code.google.com by [email protected]
on 25 Apr 2009 at 10:03
Error handling in the library is almost nonexistent.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 18 Dec 2008 at 7:53
Add setHeader and setHeaders methods to OpenSocialHttpRequest.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 17 Dec 2008 at 7:47
What steps will reproduce the problem?
1. Current RPC has only a wrapper for my profile info
2. More wrapper functions like get user info, get friends info, get group,
get activity using RPC are needed
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by api.sh%[email protected]
on 9 Dec 2008 at 7:58
Some containers only allow "@me" to update app data or post activities
instead of a user ID, even if the user ID corresponds with the
xoauth_requestor_id. Write an online test to check for this and report an
error if only one method works.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 20 Feb 2009 at 8:57
The tests in /trunk/test/online/ need to include an ActivitiesTest.php test
suite.
Operations to test:
get
create
Original issue reported on code.google.com by api.kurrik%[email protected]
on 25 Mar 2009 at 12:19
I would like to see Twitter support added. It supports OAuth, so the
authentication shouldn't be an issue. I know Twitter doesn't support
OpenSocial specifically, but a generic REST interface could be easily put
in place. For example, to update the user's Twitter Status we'd make a
call similar to this:
$osapi->rest_call->('https://twitter.com/statuses/update.xml', array
('status' => 'This is my brand new status'), 'POST');
Original issue reported on code.google.com by [email protected]
on 17 Jun 2009 at 1:12
Index: src/osapi/io/osapiIO.php
===================================================================
--- src/osapi/io/osapiIO.php (revision 88)
+++ src/osapi/io/osapiIO.php (working copy)
@@ -106,6 +106,8 @@
// force the expected input- and output values to be json encoded
if ($postBody) {
$headers = array("Content-Type: application/json");
+ } else {
+ $headers = array();
}
return $httpProvider->send($url, $method, $postBody, $headers);
}
Original issue reported on code.google.com by [email protected]
on 18 Mar 2009 at 1:09
Currently, the online test providers only test orkut's RPC implementation,
Partuza's RPC implementation, and MySpace's REST implementation. It would
be useful to add several containers to this test suite.
To add a container, a general purpose account should be registered on the
container and a consumer key and secret registered (these will be public,
so don't put any personal information into the profile or use one of your
own accounts!)
Configurations for the following are desirable:
OrkutSandboxRestTests
OrkutProductionRpcTests
OrkutProductionRestTests
PartuzaRestTests
FriendConnectRpcTests
FriendConnectRestTests
iGoogleRpcTests
iGoogleRestTests
Original issue reported on code.google.com by api.kurrik%[email protected]
on 25 Mar 2009 at 12:18
Hi we are trying to use opensocial-php-client to read friends list inside
our website.
we would like our users to input there orkutlogin email id , pwd and get
all the friends list as output. Can you help us on how to do that ? As of
now its taking orkut key (20 characters key)!
What version of the product are you using? On what operating system?
php based server, windows 2003.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 24 Dec 2008 at 2:59
What steps will reproduce the problem?
Create an appData request for "*" using the osapiOrkutProvider
What is the expected output?
All app data keys are returned
What do you see instead?
badRequest: Invalid key format: *
Original issue reported on code.google.com by api.kurrik%[email protected]
on 3 Apr 2009 at 5:42
The 0.9 spec allows for fetching App Data as a field on Person queries.
The PHP client library needs to support this.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 10 Jun 2009 at 6:14
What steps will reproduce the problem?
1. create an osapi object
2. add a "fields" array to the paramaters
3. crash 'n burn
What is the expected output? What do you see instead?
the content of the fields (if any), instead i get 404 Not Found.
What version of the product are you using? On what operating system?
1.0.1, Windows server 2008, php 5.2.8
Please provide any additional information below.
I made an osapi object using friendsconnect as provider, after that:
$profile_fields = array('aboutMe', 'currentLocation');
$self_request_params = array('userId' => '@me', 'groupId' => @self,
'fields' => $profile_fields));
$batch = $osapi->newBatch();
$batch->add($osapi->people->get($self_request_params), 'self');
When I omit the $profile_fields array, all goes well and I'm presented with
my screen name and avatar. However, when I add the fields array I get the
404 error.
Is this feature not supported by google friends connect? If so, a more
descriptive error message would be in order I guess. If not, is there
another method/workaround I could use to retrieve said data?
Original issue reported on code.google.com by [email protected]
on 27 Jul 2009 at 1:53
in file osapiOAuth3Legged.php line 60
change
if (($token = $storage->get($storageKey)) !== false) {
for
if (($token = $storage->get($this->storageKey)) !== false) {
Original issue reported on code.google.com by [email protected]
on 16 Mar 2009 at 11:54
The code in _examples_common shows how ugly making an instance of osapi can
be, particularly for the three legged oauth case:
$storage = new osapiFileStorage('/tmp/osapi/');
$provider = new osapiXrdsProvider('http://www.partuza.nl/', $storage);
$auth = osapiOAuth3Legged::performOAuthLogin($key, $secret, $storage,
$provider, $localUserId);
$osapi = new osapi($provider, $auth);
Particularly, it feeds wrong to have to create a storage, pass the storage
to the provider's constructor, create an auth with both the storage and
provider, and then pass the auth and the provider to the osapi constructor.
A much simpler approach would be to have:
$osapi = new osapi();
$osapi->setStorage(new osapiFileStorage('/tmp/osapi/'));
$osapi->setProvider(new osapiXrdsProvider('http://www.partuza.nl'));
$osapi->setAuth(osapiOAuth3Legged::performOAuthLogin($key, $secret,
$localUserId));
Storage/Provider/Auth objects should have setOsapi methods to allow them to
get back to the containing osapi parent object. This way if the auth
object needs storage, it can call $this->getOsapi()->getStorage();
There should be static convenience methods for obtaining an osapi object
with sensible defaults:
osapiOrkutProvider::getOsapi($key, $secret);
Original issue reported on code.google.com by api.kurrik%[email protected]
on 25 Mar 2009 at 10:39
The current RPC code has too much redundancy between handling one request
and multiple requests. Clean this up.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 17 Dec 2008 at 7:36
The messaging format in 0.9 is not backwards compatible with the old
messaging formats. When configuring a container, the library should allow
for specifying which version of the API is being targeted.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 10 Jun 2009 at 6:15
What steps will reproduce the problem?
1. Run appdata->update(array('userId' => '@viewer', 'groupId' => '@self',
'appId' => $appId, 'data' => array('osapiFoo1' => 'newBar1'))
2. Check the content-type of the outgoing request (tcpdump -s0 -A host
shindig-server.example.com)
The content-type should be application/json because the form body is json.
Here's a dump of the request to my server (sandbox.orkut.com gives a
similar response):
POST
/social/rest/appdata/@viewer/@self/147810927296?oauth_nonce=nonce&oauth_version=
1.0&oauth_timestamp=timestamp&oauth_consumer_key=ck&xoauth_requestor_id=guid&oau
th_signature_method=HMAC-SHA1&oauth_signature=signature
HTTP/1.1^M
User-Agent: osapi 1.0^M
Host: snip^M
Accept: */*^M
Content-Length: 23^M
Content-Type: application/x-www-form-urlencoded^M
^M
{
"osapiFoo1":"newBar1"}
Here is the response:
<u>The server encountered an internal error (Unknown error Could not
convert to class java.util.HashMap) that prevented it from fulfilling this
request.</u>
Discussion on the shindig-dev list:
http://shindig-dev.markmail.org/message/qnn66hjzitcczgxm
Original issue reported on code.google.com by [email protected]
on 8 Mar 2009 at 9:09
What steps will reproduce the problem?
1.install on foo.tld behind a reverse proxy of foo.com
2.go to examples
3.use 3 legged example
What is the expected output? What do you see instead?
expected: callbackUrl is foo.com
instead : callbackUrl is foo.tld
What version of the product are you using? On what operating system?
1.0.0 on GNU/Linux
Please provide any additional information below.
Use the X-Forwarded-For information to build $callbackUrl at
opensocial-php-client/osapi/auth/osapiOAuth3Legged.php
In order to avoid security problems the X-Forwarded-For field should be
intepreted only if the request comes from a pre-defined list of known
reverse proxy.
Original issue reported on code.google.com by [email protected]
on 3 Jul 2009 at 7:13
This is an enhancement request for the opensocial php client to support
the Facebook PHP client. Obviously Facebook doesn't support the opensocial
specifications, but there are corresponding REST API's that could be
mapped to standard opensocial calls and responses. The idea would be that
we could use these opensocial API's to access all the major social
networking sites with a single code-base.
Here are examples of what could be mapped:
OpenSocial -> Facebook
People, Retrieve -> users.getInfo, friends.get
Activities, Retrieve -> stream.get (beta)
Activities, Create -> stream.publish (beta)
AppData, Retrieve -> data.getUserPreference(s) are most applicable but
Facebook also provides mass database storage as well
AppData, Create -> data.setUserPreference(s)
AppData, Delete -> data.setUserPreference(s) with null values
Messages, Retrieve -> no way to get user's emails on Facebook, but could
get their app notifications using notifications.get
Messages, Create -> notifications.sendEmail (and notifications.send
In addition, a new Auth method would be needed for Facebook. Facebook
provides a number of auth API's for this as well, such as
auth.createToken, auth.getSession, etc.
Certainly this would require also mapping the specific result data
structures and field names to the corresponding structures and field names
in the opensocial spec, but it should be possible to get pretty close.
Original issue reported on code.google.com by [email protected]
on 16 Jun 2009 at 3:35
What steps will reproduce the problem?
1. Make a REST request to iGoogle
2. Get an exception with an error saying "oauth_body_hash failed verification"
3.
What is the expected output? What do you see instead?
The result of the REST request
What version of the product are you using? On what operating system?
latest svn of today r117
Please provide any additional information below.
I've attached a patch that fixes the error
Original issue reported on code.google.com by guy%[email protected]
on 14 May 2009 at 8:09
Attachments:
Currently, if a request uses "@me", the xoauth_requestor_id will be set to
"@me" unless explicitly overridden. In this case, throw an exception
before sending the request.
Original issue reported on code.google.com by api.kurrik%[email protected]
on 17 Dec 2008 at 7:47
The tests in /trunk/test/online/ need to include an AppData.php test suite.
Operations to test:
get
create
delete
Original issue reported on code.google.com by api.kurrik%[email protected]
on 25 Mar 2009 at 12:20
What steps will reproduce the problem?
1. Current http client uses CURL first
2. If CURL is not available, it opens a socket and composes http header and
send either POST or GET
What is the expected output? What do you see instead?
Switch to use Zend http client
Original issue reported on code.google.com by api.sh%[email protected]
on 9 Dec 2008 at 5:48
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.