Source for file YfrogUploader.php
Documentation is available at YfrogUploader.php
* An abstract interface for OAuthUploader Services
* 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.
* @package Services_Twitter_Uploader
* @author withgod <noname@withgod.jp>
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License
* @version Release: 0.1.0
* @link https://github.com/withgod/Services_Twitter_Uploader
require_once 'HTTP/Request2.php';
require_once 'Services/Twitter/Uploader.php';
* implementation OAuthUploader Services
* @package Services_Twitter_Uploader
* @author withgod <noname@withgod.jp>
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License
* @version Release: 0.1.0
* @link https://github.com/withgod/Services_Twitter_Uploader
* @link http://code.google.com/p/imageshackapi/
* @link http://code.google.com/p/imageshackapi/wiki/TwitterAuthentication
protected $uploadUrl = "https://yfrog.com/api/upload";
* preUpload implementation
$this->lastRequest->setConfig ('ssl_verify_peer', false );
} catch (HTTP_Request2_Exception $e) {
* postUpload implementation
* @return string|nullimage url
if ($resp['stat'] == 'ok') {
return (string) $resp->mediaurl [0 ];
'invalid response code [' . $resp->err ['msg'] . ']'
Documentation generated on Wed, 19 Oct 2011 16:30:04 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.
|