Skip to content

Commit

Permalink
cran release info for github
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt committed Jan 12, 2018
1 parent 836a5a2 commit 55fdd45
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 43 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: walmartAPI
Type: Package
Title: Walmart Open API Wrapper
Version: 0.1.5
Version: 0.1.5.9000
Authors@R: person("Emil", "Hvitfeldt", email = "emilhhvitfeldt@gmail.com", role = c("aut", "cre"))
Description: Provides API access to the Walmart Open API <https://developer.walmartlabs.com/>,
that contains data about stores, Value of the day and products which
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# walmartAPI 0.1.5.9000

The package is on [CRAN](https://cran.r-project.org/web/packages/walmartAPI/index.html)!

# walmartAPI 0.1.02

* Added a `save_walmart_credentials()` function to caches the credentials to avoid need for entering every time a function is called.
Expand Down
78 changes: 36 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
walmartAPI
==========

[![Travis build status](https://travis-ci.org/EmilHvitfeldt/walmartAPI.svg?branch=master)](https://travis-ci.org/EmilHvitfeldt/walmartAPI)
[![Travis build status](https://travis-ci.org/EmilHvitfeldt/walmartAPI.svg?branch=master)](https://travis-ci.org/EmilHvitfeldt/walmartAPI) [![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/walmartAPI)](https://cran.r-project.org/package=walmartAPI) ![downloads](http://cranlogs.r-pkg.org/badges/grand-total/walmartAPI)

The goal of walmartAPI is to give access to the API created by [walmartlabs](https://developer.walmartlabs.com/) to search products, locate stores etc etc.

Expand All @@ -12,9 +12,11 @@ To use this package you will need an API key which you can acquire by signing up
Installation
------------

You can install walmartAPI from github with:
`walmartAPI` is available on CRAN and can be installed normally with `install.packages(tidygraph).` or you can install walmartAPI from github with:

``` r
install.packages("walmartAPI")

# install.packages("devtools")
devtools::install_github("EmilHvitfeldt/walmartAPI")
```
Expand All @@ -34,39 +36,33 @@ walmartAPI::lookup(id = 19336123, key = key)
```

#> # A tibble: 1 x 15
#> itemId name msrp
#> <int> <chr> <dbl>
#> 1 19336123 Intex Krystal Clear Saltwater System 15,000 Gallon 299.99
#> # ... with 12 more variables: salePrice <dbl>, upc <chr>,
#> # categoryPath <chr>, longDescription <chr>, thumbnailImage <chr>,
#> # productTrackingUrl <chr>, standardShipRate <dbl>, marketplace <lgl>,
#> # productUrl <chr>, availableOnline <lgl>, offerType <chr>,
#> itemId name msrp sale… upc cate… long… thum… prod… stan… mark… prod…
#> <int> <chr> <lgl> <dbl> <chr> <chr> <chr> <chr> <chr> <dbl> <lgl> <chr>
#> 1 1.93e⁷ Inte… NA 170 0782… Toys… &lt;… http… http… 0 T http…
#> # ... with 3 more variables: availableOnline <lgl>, offerType <chr>,
#> # shippingPassEligible <lgl>

search in products using plain text

``` r
walmartAPI::search("ipod", key = key)
walmartAPI::searching("ipod", key = key)
```

#> # A tibble: 10 x 15
#> itemId
#> <int>
#> 1 42608125
#> 2 42608121
#> 3 22288784
#> 4 541357139
#> 5 49802795
#> 6 54203936
#> 7 50689211
#> 8 12510108
#> 9 173544522
#> 10 172440769
#> # ... with 14 more variables: name <chr>, msrp <dbl>, salePrice <dbl>,
#> # upc <chr>, categoryPath <chr>, longDescription <chr>,
#> # thumbnailImage <chr>, productTrackingUrl <chr>,
#> # standardShipRate <dbl>, marketplace <lgl>, productUrl <chr>,
#> # availableOnline <lgl>, offerType <chr>, shippingPassEligible <lgl>
#> itemId name msrp sale… upc cate… longDesc… thum… prod… stan… mark…
#> <int> <chr> <dbl> <dbl> <chr> <chr> <chr> <chr> <chr> <dbl> <lgl>
#> 1 4.26e⁷ Appl… 300 179 8884… Elec… IPOD TOU… http… http… 0 F
#> 2 4.26e⁷ Appl… 247 199 8884… Elec… IPOD TOU… http… http… 0 F
#> 3 4.97e⁷ Refu… 120 109 8135… Elec… &lt;ul&g… http… http… 0 F
#> 4 1.42e⁸ Appl… NA 240 7059… Elec… Includes… http… http… 0 T
#> 5 4.49e⁷ Refu… NA 185 8189… Elec… &lt;br&g… http… http… 0 F
#> 6 5.41e⁸ Appl… 450 299 8884… Elec… 2015 App… http… http… 0 F
#> 7 1.40e⁸ Unde… NA 190 6464… Elec… &lt;ul&g… http… http… 0 T
#> 8 1.09e⁸ Refu… NA 200 6361… Elec… Features… http… http… 0 T
#> 9 1.72e⁸ Appl… 350 255 7187… Elec… &lt;ul&g… http… http… 0 T
#> 10 1.12e⁸ Appl… NA 300 7059… Elec… The new … http… http… 0 T
#> # ... with 4 more variables: productUrl <chr>, availableOnline <lgl>,
#> # offerType <chr>, shippingPassEligible <lgl>

and locate stores in your area

Expand All @@ -75,18 +71,16 @@ store_locator(city = "Houston", key = key)
```

#> # A tibble: 86 x 12
#> no name country lon lat
#> <int> <chr> <chr> <dbl> <dbl>
#> 1 5959 Houston Walmart US -95.40132 29.77282
#> 2 5612 Houston Walmart Supercenter US -95.31293 29.71622
#> 3 4526 Houston Walmart Supercenter US -95.37707 29.82985
#> 4 3640 Houston Walmart Supercenter US -95.46515 29.78876
#> 5 3584 Houston Walmart Supercenter US -95.46501 29.72305
#> 6 2718 Houston Walmart US -95.45750 29.67688
#> 7 2066 Houston Walmart Supercenter US -95.51169 29.73549
#> 8 5094 Houston Walmart Neighborhood Market US -95.49547 29.67444
#> 9 2257 Houston Walmart Supercenter US -95.50908 29.85391
#> 10 2724 Pasadena Walmart Supercenter US -95.21038 29.69344
#> # ... with 76 more rows, and 7 more variables: streetAddress <chr>,
#> # city <chr>, stateProvCode <chr>, zip <chr>, phoneNumber <chr>,
#> # sundayOpen <lgl>, timezone <chr>
#> no name coun… lon lat stre… city stat… zip phon… sund… time…
#> <int> <chr> <chr> <dbl> <dbl> <chr> <chr> <chr> <chr> <chr> <lgl> <chr>
#> 1 5959 Hous… US -95.4 29.8 111 … Hous… TX 77007 (713… T CST
#> 2 5612 Hous… US -95.3 29.7 2391… Hous… TX 77023 (713… T CST
#> 3 4526 Hous… US -95.4 29.8 4412… Hous… TX 77022 (713… T CST
#> 4 3640 Hous… US -95.5 29.8 1118… Hous… TX 77055 (713… T CST
#> 5 3584 Hous… US -95.5 29.7 5405… Hous… TX 77081 (713… T CST
#> 6 2718 Hous… US -95.5 29.7 9555… Hous… TX 77096 (713… T CST
#> 7 2066 Hous… US -95.5 29.7 2727… Hous… TX 77063 (713… T CST
#> 8 5094 Hous… US -95.5 29.7 9700… Hous… TX 77096 (713… T CST
#> 9 2257 Hous… US -95.5 29.9 1348… Hous… TX 77040 (713… T CST
#> 10 2724 Pasa… US -95.2 29.7 1107… Pasa… TX 77506 (713… T CST
#> # ... with 76 more rows

0 comments on commit 55fdd45

Please sign in to comment.