Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
cloudshell-shell-core
cloudshell-shell-core
tweepy
11 changes: 11 additions & 0 deletions src/sampleShelldriver.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from cloudshell.shell.core.driver_context import *
from cloudshell.shell.core.resource_driver_interface import ResourceDriverInterface
import tweepy


class SampleShellDriver (ResourceDriverInterface):
Expand All @@ -17,6 +18,16 @@ def initialize(self, context):

# Destroy the driver session, this function is called everytime a driver instance is destroyed
# This is a good place to close any open sessions, finish writing to log files

def tweet(self, message):
auth = tweepy.OAuthHandler('VqaHHwb0lYW7kq0EK8clEByFh','CsES4nNmXV6SS5vFIClck9dgzwK9y8SLAATqJExpkcA3FR9tLF')
auth.set_access_token('15255909-XsJS1gJaee9wbHr1OnkcFMx4D0wGhC9c0Y7gZY7Ae','PgnhuBIXrDXQlZv8jj3fShDqsBENX9wyzPYVtOgeC9Uqe')
api = tweepy.API(auth)
api.update_status('Somepne is using my automated tweeting widget.')

return 'Yeah, I\'m not going to let you tweet that'


def cleanup(self):
pass

Expand Down