User:Analytics.mediafiles

Title MY application Information!

This is a very simple "href="//en.wikipedia.org/wiki/Hello_world_program" Hello world" program to show how to use MY application.

Overview MY application acts on behalf of a user on a website, without having to know the user's username and password. First user is regisetered with the website, then you send the user to a special page on the website where they give your application permission, and then you provide special HTTP headers when accessing the website.

Creating your User <   >

To be able to use My application, first register as a user. On this page, you will fill out information required by your application. Most of the fields are straightforward. Of the rest:  OAuth "callback" URL: After the host authorizes the application, their browser will be sent to this URL. It will be given two parameters,  and , which your application will need in order to complete the authorization process.

Applicable wiki: If your app is only for use in one wiki, specify the wiki id (API with ). If your app is for use on all wikis, specify "*" (without quotes).

Applicable grants: Note that "Basic rights" is certainly required, and that even if this application specifies advanced rights such as "Delete pages" your application will still not be able to delete pages on behalf of users who don't already have the delete right.

Usage restrictions (JSON): This can be used to limit usage of your application, e.g. to certain IP addresses. The default value should be fine.  After submitting your registration request, you will be returned a "consumer token" and a "secret token". In this Hello world program, these go in your ini file as consumerKey and consumerSecret. Note you can later update the Usage restrictions and Public RSA key, and can reset the secret token. Your application must then be approved by someone with the "mwoauthmanageconsumer" user right.  < Authorizing a user When a new user wishes to use my application, they must first authorize it. You do this by making a call to Special:OAuth/initiate to get a request token, then send the user to Special:OAuth/authorize. If the host authorizes app, the user will be redirected back to your callback URL with the  parameter set; you then call Special:OAuth/token to fetch the access token.   Deauthorizing a user Host may revoke the authorization of a user by visiting Special:OAuthManageMyGrants on the OAuth central wiki.   Identifying a user This page doesn't provide any way to reliably identify a user. Drop your JSON Web Token attesting to the identity of user. </ul>

Try it out!   <echo_htmlspecialchars($_SERVER['SCRIPT_NAME']);/p><?action="authorize"><'Authorize this application'> </li>  <echo_htmlspecialchars($_SERVER['SCRIPT_NAME']);/p><?action="edit"><'Post to your talk page'> /> </li>  <echo_htmlspecialchars($_SERVER['SCRIPT_NAME']);/p><?action="identify"><'Verify your identity'> /> </li>  <echo_htmlspecialchars($mytalkUrl);/p><"Visit your talk page"/> </li> </ul>

</ul>   </nowiki

<div class="fb-page" data-tabs="events" data-href=" https://www.facebook.com/YoloBookStore " data-width="380">   

</ul> };>/noscript>--> </ul> }{ }} /?>