Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A small tutorial to help you #43

Closed
daimajia opened this issue Jan 28, 2013 · 3 comments
Closed

A small tutorial to help you #43

daimajia opened this issue Jan 28, 2013 · 3 comments

Comments

@daimajia
Copy link

wiki :

https://github.com/hupili/snsapi/wiki/A-simple-tutorial-%2C-Give-you-a-brief-show

if there is any understanding problems ,please tell me.

@hupili
Copy link
Owner

hupili commented Jan 28, 2013

Documentation generated from code may also help. Since no one asks, it was idle for a long time. We can gradually add docstrings to the codes.

https://snsapi.ie.cuhk.edu.hk/doc/

@hupili
Copy link
Owner

hupili commented Jan 28, 2013

I've read the tutorial. Very nice! The digest of classes is clean. Just some small points,

  • Don't hesitate to share the tutorial with others in the group~ People are struggling. I just can not afford the effort to make it clearer. Also, as time goes, everything appears too natural for me to raise a question.
  • For comment "File encoding #3", you may want to insert some line breaks to make easier to read (in one screen). Same to future codes you push into this repo. Some old convention requires less than 73 per line (for old console). We do not make it a hard constraint but shorter lines read better. Generally, less than 100 chars can make it look nice nearly everywhere.
  • You may want to emphasize the app_key and app_secret in the sample code can only be used by you. They need to apply for their own keys. Reasons are quoted from Refresh Token ([OT]--a demo followed) #21

As to the Key you hardcode in the script, I will add some details later. All the OSNs we currently touch do not allow other users to authorize test stage Apps, e.g. only the developer can authorize it. In this case, everyone needs to register as a developer first and apply their own key. If you really want to lower the barrier of first trial, you need to supply a key pair of formal application (passing certain audit process.... it's annoying... #11 ).

@hupili
Copy link
Owner

hupili commented Jan 28, 2013

The above "#3" is rendered as an issue. I refer to the line "#3. Let's set the Channel as Sina Weibo and fill in some information, if you don't know why we "

@hupili hupili closed this as completed Feb 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants