npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

geocaching-api

v2.1.1

Published

Node.js client for Geocaching API

Downloads

15

Readme

api_v1_0

ApiV10 - JavaScript client for api_v1_0 API version 1.0. This SDK is automatically generated by the OpenAPI Generator project:

  • API version: v1
  • Package version: v1
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen For more information, please visit http://www.geocaching.com

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install api_v1_0 --save

Finally, you need to build the module:

npm run build
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

To use the link you just defined in your project, switch to the directory you want to use your api_v1_0 from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

git

If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var ApiV10 = require('api_v1_0');


var api = new ApiV10.FriendsApi()
var requestId = 56; // {Number} friend request identifier
var apiVersion = "'1.0'"; // {String} The requested API version
api.friendsAcceptFriendRequest(requestId, apiVersion).then(function() {
  console.log('API called successfully.');
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://api.groundspeak.com

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- ApiV10.FriendsApi | friendsAcceptFriendRequest | POST /v{api-version}/friendrequests/{requestId}/accept | Accept a friend request ApiV10.FriendsApi | friendsCreateFriendRequest | POST /v{api-version}/friendrequests | Create a friend request ApiV10.FriendsApi | friendsDeleteFriendRequest | DELETE /v{api-version}/friendrequests/{requestId} | Delete a friend request ApiV10.FriendsApi | friendsGetFriendRequests | GET /v{api-version}/friendrequests | Get a list of friend requests for the calling user ApiV10.FriendsApi | friendsGetFriends | GET /v{api-version}/friends | Get a list of friends for the calling user ApiV10.FriendsApi | friendsRemoveFriend | DELETE /v{api-version}/friends/{userCode} | Removes a friend ApiV10.GeoToursApi | geoToursGetGeoTour | GET /v{api-version}/geotours/{referenceCode} | Get a GeoTour ApiV10.GeoToursApi | geoToursGetGeoTours | GET /v{api-version}/geotours | Get GeoTours ApiV10.GeoToursApi | geoToursGetGeocachesByGeoTour | GET /v{api-version}/geotours/{referenceCode}/geocaches | Get the geocaches on the GeoTour ApiV10.GeocacheLogsApi | geocacheLogsAddImage | POST /v{api-version}/geocachelogs/{referenceCode}/images | Add an image to a geocache log ApiV10.GeocacheLogsApi | geocacheLogsCreateGeocacheLog | POST /v{api-version}/geocachelogs | Add a log to a geocache ApiV10.GeocacheLogsApi | geocacheLogsDeleteGeocacheLog | DELETE /v{api-version}/geocachelogs/{referenceCode} | Delete a geocache log ApiV10.GeocacheLogsApi | geocacheLogsDeleteGeocacheLogImages | DELETE /v{api-version}/geocachelogs/{referenceCode}/images/{imageGuid} | Deletes a geocache log image ApiV10.GeocacheLogsApi | geocacheLogsGetGeocacheLog | GET /v{api-version}/geocachelogs/{referenceCode} | Get a single geocache log ApiV10.GeocacheLogsApi | geocacheLogsGetImages | GET /v{api-version}/geocachelogs/{referenceCode}/images | Get a the images attached to a geocache log ApiV10.GeocacheLogsApi | geocacheLogsUpdateGeocacheLog | PUT /v{api-version}/geocachelogs/{referenceCode} | Update a geocache log ApiV10.GeocacheNotesApi | geocacheNotesDeleteNote | DELETE /v{api-version}/geocaches/{referenceCode}/notes | Delete a geocache note for the calling user ApiV10.GeocacheNotesApi | geocacheNotesUpsertNote | PUT /v{api-version}/geocaches/{referenceCode}/notes | Upsert a geocache note for the calling user ApiV10.GeocachesApi | geocachesGetFavoritedBy | GET /v{api-version}/geocaches/{referenceCode}/favoritedby | Get a list of Users that have favorited a geocache ApiV10.GeocachesApi | geocachesGetGeocache | GET /v{api-version}/geocaches/{referenceCode} | Get a single Geocache ApiV10.GeocachesApi | geocachesGetGeocaches | GET /v{api-version}/geocaches | Get a list of geocaches ApiV10.GeocachesApi | geocachesGetImages | GET /v{api-version}/geocaches/{referenceCode}/images | Get a list of images for a geocache ApiV10.GeocachesApi | geocachesGetLogs | GET /v{api-version}/geocaches/{referenceCode}/geocachelogs | Get a list of geocache logs for the specified geocache ApiV10.GeocachesApi | geocachesGetTrackables | GET /v{api-version}/geocaches/{referenceCode}/trackables | Get a list of trackables in a geocache ApiV10.GeocachesApi | geocachesSearch | GET /v{api-version}/geocaches/search | Search for Geocaches ApiV10.HQPromotionsApi | hQPromotionsGet | GET /v{api-version}/HQPromotions/metadata | Returns a list of metadata for currently visible and upcoming Geocaching HQ promotions ApiV10.ListsApi | listsAddGeocache | POST /v{api-version}/lists/{referenceCode}/geocaches | Add a geocache to a list ApiV10.ListsApi | listsAddGeocaches | POST /v{api-version}/lists/{referenceCode}/bulkgeocaches | Add multiple geocaches to a list ApiV10.ListsApi | listsCreateList | POST /v{api-version}/lists | Create a list ApiV10.ListsApi | listsDeleteGeocache | DELETE /v{api-version}/lists/{referenceCode}/geocaches/{geocacheReferenceCode} | Remove a geocache from a list ApiV10.ListsApi | listsDeleteList | DELETE /v{api-version}/lists/{referenceCode} | Remove a list ApiV10.ListsApi | listsGetGeocaches | GET /v{api-version}/lists/{referenceCode}/geocaches | Get a list of geocaches for a specified list ApiV10.ListsApi | listsGetList | GET /v{api-version}/lists/{referenceCode} | Get a list ApiV10.ListsApi | listsGetZippedPocketQuery | GET /v{api-version}/lists/{referenceCode}/geocaches/zipped | Gets a zipped file for a pocket query ApiV10.ListsApi | listsUpdateList | PUT /v{api-version}/lists/{referenceCode} | Edit a list ApiV10.LogDraftsApi | logDraftsAddImage | POST /v{api-version}/logdrafts/{referenceCode}/images | Add image to log draft ApiV10.LogDraftsApi | logDraftsCreateDraft | POST /v{api-version}/logdrafts | Create a log draft ApiV10.LogDraftsApi | logDraftsDeleteDraft | DELETE /v{api-version}/logdrafts/{referenceCode} | Delete a log draft ApiV10.LogDraftsApi | logDraftsGetDraft | GET /v{api-version}/logdrafts/{referenceCode} | Get a single log draft for the calling user ApiV10.LogDraftsApi | logDraftsGetUserDrafts | GET /v{api-version}/logdrafts | Get a list of log drafts for the calling user ApiV10.LogDraftsApi | logDraftsPromoteToGeocacheLog | POST /v{api-version}/logdrafts/{referenceCode}/promote | Promote Log Draft to Geocache Log ApiV10.LogDraftsApi | logDraftsUpdateDraft | PUT /v{api-version}/logdrafts/{referenceCode} | Update a log draft ApiV10.ReferenceDataApi | referenceDataGetAttributes | GET /v{api-version}/attributes | Returns the available attributes ApiV10.ReferenceDataApi | referenceDataGetCountries | GET /v{api-version}/countries | Returns current list of country ids and names ApiV10.ReferenceDataApi | referenceDataGetGeocacheLogTypes | GET /v{api-version}/geocachelogtypes | Returns the geocache log types ApiV10.ReferenceDataApi | referenceDataGetGeocacheTypes | GET /v{api-version}/geocachetypes | Returns the available geocache types ApiV10.ReferenceDataApi | referenceDataGetMembershipLevels | GET /v{api-version}/membershiplevels | Returns the membership levels ApiV10.ReferenceDataApi | referenceDataGetStates | GET /v{api-version}/states | Returns the state (aka region) names and ids ApiV10.ReferenceDataApi | referenceDataGetStatesByCountry | GET /v{api-version}/countries/{countryId}/states | Returns the state (aka region) names and ids ApiV10.ReferenceDataApi | referenceDataGetTrackableLogTypes | GET /v{api-version}/trackablelogtypes | Returns the trackable log types ApiV10.StatusApi | statusPingAsync | GET /status/ping | Returns Ok. ApiV10.TrackableLogsApi | trackableLogsAddImage | POST /v{api-version}/trackablelogs/{referenceCode}/images | Add an image to a trackable log ApiV10.TrackableLogsApi | trackableLogsCreateTrackableLog | POST /v{api-version}/trackablelogs | Add a log to a trackable ApiV10.TrackableLogsApi | trackableLogsDeleteTrackableLog | DELETE /v{api-version}/trackablelogs/{referenceCode} | Deletes a trackable log ApiV10.TrackableLogsApi | trackableLogsDeleteTrackableLogImages | DELETE /v{api-version}/trackablelogs/{referenceCode}/images/{imageGuid} | Deletes a trackable log image ApiV10.TrackableLogsApi | trackableLogsGetImages | GET /v{api-version}/trackablelogs/{referenceCode}/images | Get a the images attached to a trackable log ApiV10.TrackableLogsApi | trackableLogsGetTrackableLog | GET /v{api-version}/trackablelogs/{referenceCode} | Get a single trackable log ApiV10.TrackableLogsApi | trackableLogsUpdateTrackableLog | PUT /v{api-version}/trackablelogs/{referenceCode} | Update a trackable log ApiV10.TrackablesApi | trackablesGetGeocoinTypes | GET /v{api-version}/trackables/geocointypes | Get paged geocoin types ApiV10.TrackablesApi | trackablesGetImages | GET /v{api-version}/trackables/{referenceCode}/Images | Get the images attached to a trackable ApiV10.TrackablesApi | trackablesGetTrackable | GET /v{api-version}/trackables/{referenceCode} | Get a single trackable ApiV10.TrackablesApi | trackablesGetTrackableLogs | GET /v{api-version}/trackables/{referenceCode}/trackablelogs | Get a list of trackable logs for the specified trackable ApiV10.TrackablesApi | trackablesGetUserTrackables | GET /v{api-version}/trackables | Gets a list of trackables ApiV10.UserWaypointsApi | userWaypointsCreateUserWaypoint | POST /v{api-version}/userwaypoints | Create a user waypoint ApiV10.UserWaypointsApi | userWaypointsDeleteCorrectedCoordinates | DELETE /v{api-version}/geocaches/{referenceCode}/correctedcoordinates | Delete a corrected coordinate for the calling user ApiV10.UserWaypointsApi | userWaypointsDeleteUserWaypoint | DELETE /v{api-version}/userwaypoints/{referenceCode} | Delete a user waypoint ApiV10.UserWaypointsApi | userWaypointsGetGeocacheUserWaypoints | GET /v{api-version}/geocaches/{referenceCode}/userwaypoints | Gets the user waypoints for a geocache ApiV10.UserWaypointsApi | userWaypointsGetUserWaypoints | GET /v{api-version}/userwaypoints | Get a list of user waypoints for the calling user ApiV10.UserWaypointsApi | userWaypointsUpdateUserWaypoint | PUT /v{api-version}/userwaypoints/{referenceCode} | Update a user waypoint ApiV10.UserWaypointsApi | userWaypointsUpsertCorrectedCoordinates | PUT /v{api-version}/geocaches/{referenceCode}/correctedcoordinates | Upsert a corrected coordinate for the calling user ApiV10.UsersApi | usersGetGeocacheLogs | GET /v{api-version}/users/{referenceCode}/geocachelogs | Get a list of a user's geocache logs ApiV10.UsersApi | usersGetImages | GET /v{api-version}/users/{referenceCode}/images | Get the images attached to a user profile ApiV10.UsersApi | usersGetLists | GET /v{api-version}/users/{referenceCode}/lists | Get a list of user's geocache lists ApiV10.UsersApi | usersGetSouvenirs | GET /v{api-version}/users/{referenceCode}/souvenirs | Get an account's souvenirs ApiV10.UsersApi | usersGetUser | GET /v{api-version}/users/{referenceCode} | Get a user ApiV10.UsersApi | usersGetUsers | GET /v{api-version}/users | Get a list of users ApiV10.UtilitiesApi | utilitiesGetReferenceCode | GET /v{api-version}/utilities/referencecode | Returns the reference code from an id

Documentation for Models

Documentation for Authorization

AccessToken

  • Type: API key
  • API key parameter name: AccessToken
  • Location: HTTP header