Steem Connect Documentation

in #steemconnect9 years ago

This Post helps developers integrate Steem Connect. It would have helped me if it had existed before.

You can find this content also at http://www.steemfiles.com/steemconnect_notes.html

I will not go through all of the time to put this as a github pull request. I am not going to beg for people to include this in the steemconnect github page. If they want it, let them beg me.

Working Examples

By taking the example, at https://github.com/bonustrack/bonustrack.github.io/tree/master/tutorials comments, and substituting your own parameters for steemconnect.init(), you can check whether steemconnect has the necessary configurations from you in order to use it. You will need to go to http://steemconnect.com (no www) to seutp up your app.

Setting up your App for Steem Connect:

Once you login to Steem Connect you will find a button for 'Developers <>.' Click on that, and choose 'setup your app'.

Author


This value has no effect what-so-ever on how your programs interact with steemconnect. It is the author of
the app. So, if the developer who wrote the app for you was xeroc, put xeroc.

Requested permissions


The app must demand something in order for this to work at all.
The permissions are Vote, Follow, Reblog, Comment and Post. There is no 'log in' permission. Leaving them all unchecked means you will not be able to accept logins. Setting them all checked allows logins.

Allowed Origins


These are the URLs where the user will open the Steem Connect login page from. You will need to put in the URL for all pages that could open a login. These must include the scheme part, the host part and the path part. As in "https://www.steemfiles.com/cgi-bin/login.cgi".

Allowed redirect urls


These are the URLs that Steem Connect should redirect your post to after the user logs in successfully. As with
allowed origins, these must contain a scheme part, host part and path part.


steemconnect.init({

baseURL: 'https://dev.steemconnect.com',
app:
The steemit.com username you logged in as in order to setup your app,
callbackURL:
The URL on your site, Steem Connect should redirect the user to after login
});

Sort:  

Good stuff man. Your documentation is appreciated. Keep it up :)

The steemit post contains some incorrect documentation. Please see the corrected version at www.steemfiles.com/steemconnect_notes.html

Wow great work on the documentation!

Thank you, this is exactly what I need.

I am glad someone other than myself is referring to it. I will look forward to reading about how you use Steem Connect.

good a post , please upvote my post @leprechaun

Coin Marketplace

STEEM 0.09
TRX 0.31
JST 0.031
BTC 105670.03
ETH 3776.48
USDT 1.00
SBD 0.59