示例#1
0
	def doSimpleNote(self):
		from simplenote import Simplenote
		self.parent.simple = Simplenote('*****@*****.**', ciper.decrypt('ipvjopwz'))
		noteNodes, status = self.parent.simple.get_note_list(tags=['DevCons'])
		for eachNoteNode in noteNodes:
			if(not eachNoteNode['deleted']):
				noteNode, dataStatus = self.parent.simple.get_note(eachNoteNode["key"])
				content = noteNode['content']
				title = content.split('\n',1)[0]
				if(title=='DevConsole'):
					print(noteNode)
					print(content)
示例#2
0
#For DevConsole

# Include the Dropbox SDK
import dropbox
import ciper

# Get your app key and secret from the Dropbox developer website
app_key = ciper.decrypt('uht;i;>x!wv>|;@')
app_secret = ciper.decrypt('9}87yj"9;spm <h')


#flow = dropbox.client.DropboxOAuth2FlowNoRedirect(app_key, app_secret)
#authorize_url = flow.start()
#print(authorize_url)
#https://www.dropbox.com/1/oauth2/authorize?client_id=nam4b47qypo7u49&response_type=code

code = ciper.decrypt('?uvfU]Z|O9nHHHHHHHHKhr]:z^7m`^zRZ4=`zZRzO`')

#access_token, user_id = flow.finish(code)
access_token=ciper.decrypt('?uvfU]Z|O9nHHHHHHHHKh?XX" {aJki4i_tHki4Uz4i|_|9LvS u@[Ol_a7ZNta')
client = dropbox.client.DropboxClient(access_token)
print ('linked account: ', client.account_info())
print(client.metadata("/"))

'''
f = open('DevConsolePlug.py', 'rb')
response = client.put_file('/DevConsolePlug.py', f)
print ("uploaded:", response)
'''