Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanstapel authored Sep 5, 2023
1 parent 74fcf7b commit b29509d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,23 +99,31 @@ foreach(CatalogItem catalogItem in catalog.Result)
}
```

Each item in the resulting list looks like this:

![grafik](https://github.com/stephanstapel/BrickOwlSharp/assets/2912080/c4d72358-4de4-4c65-8f18-afbf49085bd9)


Instead of retrieving the entire catalog, you can lookup single items:

```C#
Task<CatalogItem> item = client.CatalogLookupAsync("737117-39");
item.Wait();
```

This function will retrieve information about the antenna part.
This function will retrieve information about the antenna part only.

To find out in which shops a particular item is available, call:

```C#
Task<Dictionary<string, CatalogItemAvailability>> availability = client.CatalogAvailabilityAsync("737117-39", "DE");
availability.Wait();
```

This call will return a dictionary with the shop id as the key and availability information as the value.
Each element in the dictionary looks like this:

![grafik](https://github.com/stephanstapel/BrickOwlSharp/assets/2912080/2c72340e-46b5-4995-a209-e97de8245da1)


To find out the BrickOwl ids for particular design ids, ldraw ids etc., call:

Expand Down

0 comments on commit b29509d

Please sign in to comment.