Login   Register  
PHP Classes
elePHPant
Icontem

File: example/get_user_info.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of windylea  >  MediaFire API PHP Library  >  example/get_user_info.php  >  Download  
File: example/get_user_info.php
Role: Example script
Content type: text/plain
Description: Example of getting user information
Class: MediaFire API PHP Library
Upload and retrieve files to MediaFire service
Author: By
Last change: Updated class example
Date: 2 years ago
Size: 585 bytes
 

Contents

Class file image Download
<?php
/*
 * Required parameters
 */
$appId "";
$apiKey "";
$email "";
$password "";

/*
 * Initilize a new instance of the class
 */
include("../mflib.php");

$mflib = new mflib($appId$apiKey);
$mflib->email $email;
$mflib->password $password;

/*
 * Get a Access Session Token to authenticate to the API service
 *
 * This token is valid for 10 minutes only.
 */
$sessionToken $mflib->userGetSessionToken();

/*
 * Print the user information. Other methods should be as simple as that
 */
var_dump($mflib->userGetInfo($sessionToken));
?>