GitXplorerGitXplorer
m

teamdrive_api

public
3 stars
2 forks
0 issues

Commits

List of commits on branch master.
Verified
6ee140d8e53839255ece25b6a78fe7354d140953

CI: Ensure latest bundler is available

mmhutter committed 5 years ago
Verified
ea89569b7590edcd3a6f57d4eaf0052089460b5f

Remove coverage reporting

mmhutter committed 5 years ago
Verified
a5374ccd7a52711dfde2db5d6b72c22fe577f692

CI: Update tested ruby versions

mmhutter committed 5 years ago
Verified
afdd09a96920ff474eae9d8015bed6929480a3dd

Update dev dependencies

mmhutter committed 5 years ago
Unverified
575f76ec818b802d7ccee02e86094b1ad861c9d2

Version 0.5.2

mmhutter committed 9 years ago
Unverified
b436f53f1a2a841d9990b5bfa48cd72576c06b17

normalize depot data

mmhutter committed 9 years ago

README

The README file for this repository.

TeamdriveApi

Documentation Gem Version Build Status

Client library for the TeamDrive XML API.

Project State

Currently only supports the RegServer API

Installation

Add this line to your application's Gemfile:

gem 'teamdrive_api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install teamdrive_api

Usage

Note about the URI: For Pre-3.5-Versions of TeamDrive, this is usually https://server/pbas/td2api/api/api.htm for the Reg Server API and https://server/pbas/p1_as/api/api.htm for the Host Server API. From 3.5 onward, it is usually https://server/yvva/td2api/api/api.htm for the Reg Server API and https://server/yvva/api/api.htm for the Host Server API.

api = TeamdriveApi::Register.new('example.com/yvva/api/api.htm', 'd3b07384d113edec49eaa6238ad5ff00', '1.0.005')
# Parameters for TeamdriveApi::Register.new and TeamdriveApi::Host.new:
# - URI (will use https if no schema is provided)
# - api_checksum_salt (from your Register/Host server)
# - api_version (has no effect but is included in requests to the servers)

api.remove_user 'foobar'
#=> true

api.search_user username: '$CODE-*'
#=> {:apiversion=>"1.0.005",
#=>  :searchresult=>{:current=>"3", :maximum=>"50", :total=>"3"},
#=>  :userlist=>
#=>   {:user=>
#=>     [{:userid=>"2",
#=>       :username=>"$CODE-1002",
#=>       :email=>"user2@example.com",
#=>       :reference=>nil,
#=>       :department=>nil,
#=>       :language=>"en",
#=>       :distributor=>"CODE",
#=>       :usercreated=>"07/25/2014 15:06:41.00",
#=>       :status=>"activated"},
#=>      {:userid=>"10",
#=>       :username=>"$CODE-1010",
#=>       :email=>"user10@example.com",
#=>       :reference=>nil,
#=>       :department=>nil,
#=>       :language=>"en",
#=>       :distributor=>"CODE",
#=>       :usercreated=>"10/01/2014 09:31:49.00",
#=>       :status=>"activated"},
#=>      {:userid=>"15",
#=>       :username=>"$CODE-1015",
#=>       :email=>"user15@example.com",
#=>       :reference=>nil,
#=>       :department=>nil,
#=>       :language=>"en",
#=>       :distributor=>"CODE",
#=>       :usercreated=>"03/04/2015 13:39:09.00",
#=>       :status=>"activated"}]}}

For more Information see {TeamdriveApi::Register}

Version History

See the CHANGELOG

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/console for an interactive prompt that will allow you to experiment.

Contributing

  1. Fork it ( https://github.com/mhutter/teamdrive_api/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Trademarks

All trademarks named within this project are, without limitation, subject to the regulations of the trademark laws in each case, and as appropriate to ownership rights of the respective registered owners.