This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'ruby-box' | |
| require 'lru_redux' | |
| BOX_CLIENT_ID = 'YOUR_CLIENT_ID' | |
| BOX_CLIENT_SECRET = 'YOUR_CLIENT_SECRET' | |
| BOX_DEV_TOKEN = 'YOUR_DEV_TOKEN' | |
| def box_client | |
| box_session = RubyBox::Session.new({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Box.V2; | |
| using Box.V2.Auth; | |
| using Box.V2.Config; | |
| using Box.V2.Exceptions; | |
| using Box.V2.Models; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Box.V2; | |
| using Box.V2.Auth; | |
| using Box.V2.Config; | |
| using Box.V2.Exceptions; | |
| using Box.V2.Models; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'ruby-box' #gem install ruby-box | |
| require 'term/ansicolor' #gem install term-ansicolor | |
| include Term::ANSIColor | |
| MODIFIED_AT_CUTOFF = Time.new(2013,7,1) | |
| session = RubyBox::Session.new({ | |
| client_id: "YOUR_CLIENT_ID", | |
| client_secret: "YOUR_CLIENT_SECRET", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //requires .NET 4.5 | |
| using Box.V2; | |
| using Box.V2.Auth; | |
| using Box.V2.Config; | |
| using Box.V2.Exceptions; | |
| using Box.V2.Models; | |
| using Nito.AsyncEx; | |
| using System; | |
| using System.Collections.Concurrent; |
NewerOlder