HA on standby; um working on another project. a kinda of Online WYSIWYG Visual novel editor

HA on standby; um working on another project. a kinda of Online WYSIWYG Visual novel editor

1 note

Avery early semi tested beta 1.0.2 released on http://sourceforge.net/projects/hybridauth/files/

Avery early semi tested beta 1.0.2 released on http://sourceforge.net/projects/hybridauth/files/

5 notes

I finally got #Friendster #API #Authentication to work. http://bit.ly/pkZ9X

Libraries/Friendster/FriendsterAPI.php Patch

--- library/Libraries/Friendster/FriendsterAPI.php	2009/10/25 13:36:06	18
+++ library/Libraries/Friendster/FriendsterAPI.php	2009/10/25 15:01:30	19
@@ -614,7 +614,7 @@
 	 * @params	:	array('status' => 'maried'), - get/post params
 	 * @type	:	'POST' || 'GET'
 	 */
-	public function doRequest($method, $args, $params, $type = Request::GET,$response_type = FriendsterAPIResponseType::SARRAY) {
+	public function doRequest($method, $args, $params, $type = Request::GET,$response_type = FriendsterAPIResponseType::JSON) {
 		
 		// http://api.friendster.com/getUser
 		$url = $this->server_base . $method;
@@ -634,7 +634,7 @@
 			}
 			$url .= $argstr;
 		}
-		
+
 		//Set the requested format
 		if ($response_type == FriendsterAPIResponseType::XML) {
 			$params['format'] = 'xml';
@@ -682,21 +682,25 @@
 		} else {
 			$response =  $req->execute($url, $param_string, $type);
 		}
-		
+ 
 		$req = null;
 		if ($GLOBALS['friendster_api']['debug']) { echo "RESPONSE:\n["; print_r($response); echo "]\n\n"; }
-		
-		if ( $response_type != FriendsterAPIResponseType::SARRAY) {
-			$result = $response;
-		} else {
-         $xml_obj = @simplexml_load_string($response, 'SimpleXMLElement', LIBXML_NOCDATA);
- 			if ($xml_obj instanceof SimpleXMLElement) {
-				$result = self::sxml_to_array($xml_obj);
-			} else {
-				throw new FriendsterAPIException(FriendsterAPIErrorCodes::XML);
-			}
-		}
-		
+
+		$result = json_decode( $response, TRUE  ); 
+
+		/*
+				if ( $response_type != FriendsterAPIResponseType::SARRAY) {
+					$result = $response;
+				} else {
+		         $xml_obj = @simplexml_load_string($response, 'SimpleXMLElement', LIBXML_NOCDATA);
+		 			if ($xml_obj instanceof SimpleXMLElement) {
+						$result = self::sxml_to_array($xml_obj);
+					} else {
+						throw new FriendsterAPIException(FriendsterAPIErrorCodes::XML);
+					}
+				}
+		*/
+
 		return $result;			
 	}
 	
@@ -777,5 +781,3 @@
 		return $this->last_call_id;
 	} // getCallId
 }
-
-?>

0 notes

I found some similar projects to HybridAuth

Integrating HybridAuth ยป Simple Sign-In Script

0 notes

have to write the user guide. oh shit!

0 notes

just finished creating some html content to put on hybridauth.sf.net, beta version will be released soon.

just finished creating some html content to put on hybridauth.sf.net, beta version will be released soon.

0 notes

0 notes

jump to tumblr

Yeah, for sure tumblr is the most exiting blogging platform i found. so here im,

0 notes