Insert blog in project

i have run squidex with iis and i create a schema for blog page but i dont know how i insert this page in my project code ( code is mvc core )
what can i do ? what the steps
thanks ,

You can access the blog page through the API.

In PHP you can use “curl”, and in Javescript you can use “fetch” to query the API.

1 Like

@ahmed_hassan Take a look at the Squidex.ClientLibrary package:

Add the respective NuGet package to your project.

Try to follow the README.MD there although the Readme is a little bit outdated in terms of step 3 (In, @Sebastian marked the methods used in the as obsolete)

My recommended way to use Squidex.ClientLibrary

  1. You don’t want to create the client classes yourself. Instead, clone, open Squidex.ClientLibrary.sln and set CodeGeneration as your startup project. Enter your credentials there. Run the code, take the generated Generated.cs file and insert it into your ASP.NET Core MVC project.
  2. Initialize the client manager
  3. Adjust this code to your schema’s name:
var httpClient = clientManager.CreateHttpClient();
var yourBlogClient = new BlogClient(httpClient); // name of the class depends on your schema's name and, therefore, the generated classes are called
var yourData = yourBlogClient.QueryBlogContentsAsync(); // replace `Blog` with the name of your schema

from where can i get my credentials of my blog schema

In select your app, go tot settings -> clients and use the credentials shown there.


I created to pull request to update the documentation: