Tutorial for urlshorteneR – v4

dmpe @ github

2019-09-07

urlshorteneR wrapps 2 URL services Bit.ly and is.gd/v.gd. In order to begin shortening URLs and downloading usefull statistics about short links, you have to – in the case of http://bit.ly – authenticate using OAuth2.0.

For is.gd/v.gd there is no authentication needed.

Bit.ly

User/App Information & Authentication for Bit.ly

Return some basic information about my user on Bit.ly. Additionally, is my account a “premium” one?

## In order to use bitly functions, you first need to authenticate. 
##                         For that execute 'bitly_auth()' in R console.

We can also decide to update my username with a different one.

And what about the metadata about our OAUTH application?

Group Information

This retrieves information about a single group that user belongs to and and then about all groups that user are associated with.

Information about Organizations

Official API documentation https://dev.bitly.com/v4/#tag/User.

The first method returns an information about myself.

Is.gd & V.gd

Is.gd

## The requested URL has been this:  http://is.gd/create.php?format=json&url=http%3A%2F%2Fcnn.com%2F&logstats=0
## [1] "https://is.gd/kK08He"

V.gd

## The requested URL has been this:  https://v.gd/create.php?format=json&url=http%3A%2F%2Fcbs.com%2F&logstats=0
## [1] "https://v.gd/UnFdGV"