Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading Documentation #44

Open
TannerJuby1 opened this issue Apr 28, 2023 · 3 comments
Open

Misleading Documentation #44

TannerJuby1 opened this issue Apr 28, 2023 · 3 comments

Comments

@TannerJuby1
Copy link

I'm trying to use this kit but there is ZERO documentation on even the basics. The README suggests that there is documentation, but it just leads you through links that takes you to the old repo. Does there exist any documentation on how to use this product?

@benembery
Copy link
Contributor

benembery commented Apr 28, 2023

Hey @TannerJuby1, are you using .NET core?

@TannerJuby1
Copy link
Author

TannerJuby1 commented Apr 28, 2023

Yes, I believe so. It's pretty complicated, but I'm trying to write a script for Creatio which uses .NET, unfortunately I don't have access to the Creatio instance, I've just been tasked with updating this little portion in the script, so I don't have all the details of the environment. Instead, I've spun up a .NET 7 console project to write this script.

I'm trying to use this package to retrieve a PDF from a Prismic document's link field. However, I cannot find any documentation on how to use this package or anything .NET related on Prismic's website, anything I do find is incredibly outdated referencing the old .net package.

I have installed this package (v 1.5.0) but cannot figure out how to instantiate a client and make a request to retrieve a PDF via a Document's Link field.

@benembery
Copy link
Contributor

benembery commented Apr 28, 2023

A quick heads up I've not done much in .NET for quite a while. However, I know that this library will not work with it.

You might want to try my port, instead it's on NuGet. The samples folder in the repo should help you get connected to your repo.

var api = await _prismic.GetApi();
var docType = "test_document";
var document = await api.GetByUID(docType, "document-uid");

I hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants