Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLDLink manual creation #2

Open
lm2s opened this issue Dec 1, 2015 · 0 comments
Open

CLDLink manual creation #2

lm2s opened this issue Dec 1, 2015 · 0 comments

Comments

@lm2s
Copy link

lm2s commented Dec 1, 2015

Direct/manual creation of CLDLink should be possible, to perform fetch of shortURL. The only info needed for the shortURL fetch operation is sessionIdentifier and shareId, which can easily be supplied.

Example with initializer (could also be done by making these properties readwrite):

let link = CLDLink(shareId, CLDSession.defaultSession().sessionIdentifier)
link.fetchShortURLWithResultBlock({ (url) -> Void in ...

This functionality is important when trying to fetch a shortURL long after an item public link has been fetched, instead of performing another public link fetch to then fetch the shortURL, it could be done directly and instantly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant