Coder Social home page Coder Social logo

mic-check's Introduction

mic-CHECK

If your hearing someone trustworthy, it's fine repeat and support the message spread.

So, What ?

  • This application is a twitter application that basically recognize:
    • one or more Twitter user operating as "master".
    • one or more Twitter user operating as "supporter".

In order to be a supporter, the Twitter app need to be properly registered via dev.twitter.com

When one of the master account favorite a tweet, all the support retweet them. stop.

Is not a violation of Twitter policies, is not a violation of User Term of Service and Agreement and what you can have in mind. just, that.

How does it work

It's a working prototype, not a stable industrial software. but this is the sequence:

1st step: create

Login with your twitter account, and register an app, the account used here MAY have not relationship in the master/supporter. Read the Twitter rules about automation because we want avoid make spam.

2nd step: permission

Assign to your app the permission (permission who is gonna to ask to the user) in "Read/Write", like here, (my app is called mic-check, your need to have a differet name because these name are unique):

permission-twitterapp

3rd step: keys

Go in keys, click in "Your Access Token" button to create your own access token. you'll need to make tests at least.

Now, you've to copy this keys in the script files.

The script takes this options:

$ ./adminutils.py init | generate | complete <initiative_NAME>
    init: initialize an application name
    generate: generate a registration link
    complete: +need the PIN as argument + Token from the URL

We've to initialize our app environment with adminutils of mic-CHECK:

$ ./adminutils.py init initiative_name

This will asks for the keys present in the twitter page. the "Developer token" is used to identify the master account right now.

Loop

Now your app/initiative is ready, the next two operation need to be made for each supported

URL generation

$ ./adminutils.py generate mic-check
https://api.twitter.com/oauth/authorize?oauth_token=PepFuJsbtKq6MwnEzlnk0YcJT4mMrijM
1414

every time is called 'adminutils generate app_name' it return two lines:

  • the first contain the URL the supporter has to authenticated (and get the PIN)
  • the second, is a random identifier internally associated with the URL

Complete registration

$ ./adminutils.py complete mic-check 5150781 1414
sniffjoke

Calling the adminutils with the PIN receiver by the user (5150781) and the associated random ID, cause the app to successful complete the registration (and print out the username)

floatserver.py

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.