Skip to content

clarivate/woslite_csharp_client

Repository files navigation

The C# library for the Web of Science API Lite

A responsive API that supports rich searching across the Web of Science Core Collection to retrieve core article metadata. This service provides a great way to reuse Web of Science data both internally and externally to enhance institutional repositories and research networking systems with best-in-class data. This API supports searching across the Web of Science to retrieve item-level metadata with limited fields:

  • UT (Unique Identifier)
  • Authors
  • Author keywords
  • Document type
  • Title
  • Issue
  • Pages
  • Publication date
  • Source title
  • Volume
  • DOI
  • ISBN
  • ISSN
    The API supports JSON and XML responses, and this documentation supports trying both response types. We recommend that you use JSON only with this client.

This C# SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0
  • SDK version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.dotnet.CSharpClientCodegen

Frameworks supported

  • .NET 4.0 or later
  • Windows Phone 7.1 (Mango)

Dependencies

The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742

Installation

Run the following command to generate the DLL

  • [Mac/Linux] /bin/sh build.sh
  • [Windows] build.bat

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

Packaging

A .nuspec is included with the project. You can follow the Nuget quickstart to create and publish packages.

This .nuspec uses placeholders from the .csproj, so build the .csproj directly:

nuget pack -Build -OutputDirectory out IO.Swagger.csproj

Then, publish to a local feed or other host and consume the new package via Nuget as usual.

Getting Started

using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class Example
    {
        public void main()
        {
            // Configure API key authorization: key
            Configuration.Default.ApiKey.Add("X-ApiKey", "YOUR_API_KEY");
            
            var apiInstance = new IntegrationApi();
            var databaseId = "WOS";  // string | Database to search. Must be a valid database ID, one of the following: BCI/BIOABS/BIOSIS/CCC/DCI/DIIDW/MEDLINE/WOK/WOS/ZOOREC. WOK represents all databases.
            var uniqueId = "WOS:000270372400005";  // string | Primary item(s) id to be searched, ex: WOS:000270372400005. Cannot be null or an empty string. Multiple values are separated by comma.
            var count = 10;  // int? | Number of records to return, must be 0-100.
            var firstRecord = 1;  // int? | Specific record, if any within the result set to return. Cannot be less than 1 and greater than 100000

            try
            {
                // Find record(s) by specific id
                WosLiteResponse result = apiInstance.IdUniqueIdGet(databaseId, uniqueId, count, firstRecord, lang, sortField);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling IntegrationApi.IdUniqueIdGet: " + e.Message );
            }
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://api.clarivate.com/api/woslite

Class Method HTTP request Description
IntegrationApi IdUniqueIdGet GET /id/{uniqueId} Find record(s) by specific id
SearchApi QueryQueryIdGet GET /query/{queryId} Fetch record(s) by query identifier
SearchApi RootGet GET / Submits a user query and returns results

Documentation for Models

Documentation for Authorization

key

  • Type: API key
  • API key parameter name: X-ApiKey
  • Location: HTTP header

Licence

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages