Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c29cb9a57f
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (21 sloc) 1.008 kb

Command Line Marketplace Client

Install requirements:

pip install -r requirements.txt

Usage

  • Set CONSUMER_KEY and CONSUMER_SECRET environment variables:

    export CONSUMER_KEY=yourconsumerkey
    export CONSUMER_SECRET=yourconsumersecret
    
  • Change domain if you wish to work on development server:

    export MARKETPLACE_DOMAIN=marketplace-dev.allizom.org
    
  • Validate manifest. Will return manifest_id which is needed for the next steps:

    python main.py validate_manifest http://mozilla.github.com/Marketplace.Python/manifest.webapp
    
  • Check if the manifest is valid:

    python main.py is_manifest_valid your_manifest_id
    
  • Add app to marketplace, app_id will be returned:

    python main.py create your_manifest_id
    
  • Display status of the app:

    python main.py status your_app_id
    
  • Add screenshot (currently only JPEG) to app, some data including id will be returned:

    python main.py add_screenshot your_app_id ~/data/some.jpg
    
Jump to Line
Something went wrong with that request. Please try again.