layervault / layervaultapi.objc Goto Github PK
View Code? Open in Web Editor NEWLayerVault API Objective-C Library
License: MIT License
LayerVault API Objective-C Library
License: MIT License
Mostly we’ve unit tested a handful of MTLModel objects, but the HTTP clients needs to be tested as well.
Persistent properties for equality checking:
Transient properties NOT for equality checking:
We only check to see if the token is expired when the user first logs in. Unfortunately, that is the only check. If the app is running past token expiration, requests will return 401. Another consideration is that tokens expire based on server time (not client). It’s conceivable that the token might appear unexpired on the client, but expired when it gets to the server.
Proposed handling of expired tokens:
401 Unauthorized
, check the tokens expiry.Ryan LeFevre: hey MT
Ryan LeFevre: my console is spewing this every time the client tries to sync
9/2/14 1:09:27.989 PM LayerVault[87077]: No date formatter for queue 'NSOperationQueue Main Queue'. Creating.
9/2/14 1:09:27.989 PM LayerVault[87077]: Saving date formatter cache
Ryan LeFevre: hundreds of times
Matt Thomas: RL, do you see this multiple times?
No date formatter cache. Creating new.
Ryan LeFevre: i didn’t see that
A couple issues:
- [LVCHTTPClient uploadLocalFile:toPath:parameters:completion:]
assumes the credential is in the keychain. It may not be saved there.AFOAuth2Client
uses it’s own item name and uniquely identifies everything by base URL (which will always be api.layervault.com)folderPath/filePath is confusing. This is never the path on the local filesystem
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.