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. 

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

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

<noscript (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':

new Date.getTime,event:'gtm.js'});var f=d.getElementsByTagName(s)[0],

j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:;j.async=true;j.src=

'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);

})(window,document,'script','dataLayer','GTM-TGRBW7Q') noscript/>

</ul>