Giter Site home page Giter Site logo

basecamp_scripts's Introduction

basecamp_scripts

Simple command line scripts for basecamp.

Upload Files From Command Line

Uploads a file to a project from the command line. Automatically detects file size and takes care of upload for you. This could be used in connection with other scripts or by the windows task scheduler.

Usage: /upload/basecampupload.rb [options]
 Example I: Upload a zip file to a basecamp project.
         ruby basecampupload.rb
                        -f filename.zip
                        -C 1111111
                        -P 2222222
                        -s '1234, 4321, 1221'
                        -m 'Your Message Here'
                        -a '[email protected]'
                        -u '[email protected]'
                        -p 'p@ssword'
 Example II: Get all users for a basecamp project. Helpful if you need to looup subscriber information.
         ruby basecampupload.rb
                        -C 1111111
                        -P 2222222
                        -a '[email protected]'
                        -u '[email protected]'
                        -p 'p@ssword'
                        -g true 
    -f, --filename filename          Full name and path for the zip.
    -t, --content_type type          The file type being uploaded.
                                     Like:
                                     'application/zip'
    -C, --company #                  Your basecamp company ID
    -P, --project #                  Your basecamp project ID
        --authorization base64encode Basecamp user:pass base64 encode string. Optional authentication methods: username and password or base46 encoded string.
                                     Like:
                                     'Basic base46encode'
    -s, --subscribers #              Subscribers are user id's for those who will be informed that a file has been uploaded.
                                     Like:
                                     '1, 2, 3'
    -m, --message message            Latest zip file.
    -a, --user_agent email           User account used for base64 encode [email protected]
    -u, --username username          User account. Optional authentication methods: username and password or base46 encode.
    -p, --password password          User password. Optional authentication methods: username and password or base46 encode.
    -g, --get_users true             Bypass file upload and displays users for a project in json output.
                                     This is useful if you don't yet know what the subscriber id's are and want to print out that information.
    -d, --debug true                 Prints debug information. Can also be set using environment variable: i.e. SET debug=true 
    -h, --help                       Displays Help

basecamp_scripts's People

Contributors

garylbaird avatar

Watchers

 avatar  avatar

basecamp_scripts's Issues

Discussion: Individual script command line options vs master script

It might be useful to separate functions, classes and parameters into separate scripts. With a master script parameterized in such a way that it could call functions is separate scripts, rather than calling each individual script. i.e. run.rb --upload -f file.ext
It would be extra work, but less work in the long run as hashes could be passed around instead of building a separate hash for each script.

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.