Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-28-2015, 05:06 PM   #1
Registered: Dec 2013
Location: Virginia Beach, VA
Distribution: Arch Linux
Posts: 59

Rep: Reputation: 6
Digital Ocean API, and an IdeDigital Ocean API

Hi gang. I was looking at the Digital Ocean API not too long ago, and I am a bit stuck on logistics. I intend to allow the user to edit and maintain their droplets and view their account, but I am a bit stuck on how to get them to make a token for the API to work? Do I pop open the set browser and have them do it from their? Or do I just have them give me a username and have no password (I don't remember if a password is required for usage with the API if no tokens are used). Furthermore, how can I manage the token? I was thinking of making a .config/tokenfile, but that doesn't seem too wise from a security standpoint (the token can be lost, the token can be stolen...). Secondly, how does one use JSON and REST with Python? Would it be logical to put all the code logic in to one file, or can this be broken up, say, in two parts: one to do all the REST and JSON things and another to allow for the usage of the application? Sorry fi I seem a bit confused and scatterbrained; this is my first real project that I am embarking on after my first hackathon experience, and I have since figured out I have a lot to learn and a short amount of time to do it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Has anyone tried Digital Ocean Cloud Service? nyc_rr Linux - Virtualization and Cloud 2 05-28-2014 01:40 PM
LXer: Secure programming with the OpenSSL API, Part 1: Overview of the API LXer Syndicated Linux News 0 06-29-2012 12:30 PM
Hello! here's my first dip into the ocean.......... rajux Member Intro 1 09-06-2010 08:44 AM
Let's declare war on the ocean! icecubeflower General 29 04-16-2010 03:54 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration