adn_viewer 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/lib/adn_viewer.rb +6 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ODY5ZDg4M2JjYjBhNTA1ODBkZDI2ZTY5NWI1Y2YxZmNmNDZmYTcyMA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MTBlYjAxZDg1YzY4MjVhZWJmNGUyMzA5ZDZhZWI5ZTU5NzMwZmI4MA==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YjQwNjk2ZDU3YWY2YTFhOWQ0YjgxOTgwODQ3YzU0NmZjMTg3ODBmODFjZTMw
|
10
|
+
NmE2ZTg0MzFkZjkxMGM1ZmZkNmM1ZjM1ZmM0YWQ4OTFhMmJmMGNmZGFjY2Rk
|
11
|
+
ZDQ3ODYyNGFlNWYyMTZlNGMwNTMzY2M3NTdlZTY5Mjc0YTZjZmU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
Y2EyNTdmYzQwZmVmYWI4NTljYjljYzZkYmQ0N2UxOTE2MzRmNjQwZGIxOTc1
|
14
|
+
OThjNjg3YjRhMjFkMWE0ZjMxMDg5OWYxZjdjMjMzYWZkZDAxZTkwNzY4MTZj
|
15
|
+
MTIyY2RjZDQ5OWIyYmYxMzNmOGIyOGM1MjFjYWM5MDM4OGZiZTM=
|
data/lib/adn_viewer.rb
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
class Adn_Viewer
|
2
|
+
def self.token(key, secret)
|
3
|
+
token = JSON.parse(CurbFu.post({:host => 'developer.api.autodesk.com', :path => '/authentication/v1/authenticate', :protocol => "https"}, { :client_id => key, :client_secret => secret, :grant_type => 'client_credentials' }).body)
|
4
|
+
token["access_token"]
|
5
|
+
end
|
6
|
+
end
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: adn_viewer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Pratham Makhni Alag
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-07-27 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: ADN Viewer Starter
|
14
|
+
email: pratham.makhni.alag@autodesk.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/adn_viewer.rb
|
20
|
+
homepage: http://rubygems.org/gems/adn_viewer
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubyforge_project:
|
40
|
+
rubygems_version: 2.4.5
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: Ruby gem to make usage of Autodesk View and Data API in a Ruby app easier
|
44
|
+
test_files: []
|