API Integration For Slack For Rumble Results

Discussion in 'Guild Improvements' started by G0189a, Oct 17, 2015.

  1. G0189a

    G0189a Powder Monkey

    A few guilds use Slack app for managing their guild or sets of guilds. I was in Rapt alliance before that went away. Now I am in Dark Crusaders which is awesomely fun. But it can have a bit of housekeeping Midoki could help us out with like pushing rumble results to a guild location via API's.

    Some groups of guilds use Slack to move people between guilds and communicate across the way. pretty brilliant idea. But we can go one better if we automate the tasks. So not sure if you all use this at Midoki/Rovio to get with all your DevOps needs but API integration could be a way to keep more of your active folks hooked into Plunder Pirates.

    One of the things we do to is post the rumble results and try and keep track of what pirates are doing well and doing bad needing to be demoted or kicked. But these images are difficult to see what pirates need a pat on the back or a poke or a good swift boot for leeching rumble results without contribution.

    Slack uses some OAuth mechanisms for integration. So how can a guild subscribe outside of the game authentication via Slack?

    https://api.slack.com/

    You would need to authorize each guild in Plunder Pirates to obtain its own client ID. Then is make a slack integration to sign up your guild as the scope and team. You would have to have post scope to allow the Plunder Pirate server to post the rumble information to your guild. Not sure how this would be done. Maybe common thing is facebook login?

    Code:
    client_id    - issued when you created your application (required)
    redirect_uri - URL to redirect back to (see below) (optional)
    scope        - permissions to request (see below) (optional)
    state        - unique string to be passed back upon completion
    team         - Slack team ID to restrict to (optional)
    
    The messages would be a JSON format to post text of the rumble results with a new line for each pirate. Date time stamp the result.

    Pirate name: Skye422
    Guild: Dark Crusaders
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice