Bukimedia / PrestaSharp

CSharp .Net client library for the PrestaShop API via web service
GNU General Public License v3.0
154 stars 152 forks source link

Prestasharp with VB.net #436

Closed joomy78 closed 7 months ago

joomy78 commented 2 years ago

Hello, is it possible to use prestasharp with vb.net? I installed it via nuget without problem

I followed the basic instructions: https://github.com/Bukimedia/PrestaSharp

I tried initialization like this: Dim manufacturerFactory As ManufacturerFactory = New ManufacturerFactory (baseUrl, account, password)

however, visual studio informs me that ManufacturerFactory is not defined

can you help me solve this problem? thank you

OscarLate commented 2 years ago

Sorry for the delay but yes, you can.

        Dim manufacturerFactory As ManufacturerFactory = New ManufacturerFactory(BaseUrl, Account, Password)
        Dim manu As New manufacturer
        manu.name = proveedor
        manu.active = 1
        Return manufacturerFactory.Add(manu).id

This works,