ymkjp / opensocial-php-client

Automatically exported from code.google.com/p/opensocial-php-client
Apache License 2.0
0 stars 0 forks source link

Add Support for Friend Connect #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 rovagn...@gmail.com on 18 Mar 2009 at 1:07

GoogleCodeExporter commented 9 years ago

Original comment by api.kurrik%google.com@gtempaccount.com on 25 Mar 2009 at 12:46