AvvaMobile.Core.Parasut 1.0.9

There is a newer version of this package available.
See the version list below for details.
dotnet add package AvvaMobile.Core.Parasut --version 1.0.9
NuGet\Install-Package AvvaMobile.Core.Parasut -Version 1.0.9
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AvvaMobile.Core.Parasut" Version="1.0.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AvvaMobile.Core.Parasut --version 1.0.9
#r "nuget: AvvaMobile.Core.Parasut, 1.0.9"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AvvaMobile.Core.Parasut as a Cake Addin
#addin nuget:?package=AvvaMobile.Core.Parasut&version=1.0.9

// Install AvvaMobile.Core.Parasut as a Cake Tool
#tool nuget:?package=AvvaMobile.Core.Parasut&version=1.0.9

Giriş

.Net ile Paraşüt API'ını rahat kullanabilmek için bu paket geliştirilmiştir. Paraşüt tarafından sağlanan tüm özellikler henüz tam implement edilmemiştir. Yeni özellikler eklendikte paket güncellemesi yapılacaktır.

Paraşüt Web API dokümantasyonuna https://apidocs.parasut.com/ adresinden ulaşabilirsiniz.

Bu paket Paraşüt'ün V4 versiyonu için geliştirilmiştir.

Kaynak Kodları

Paketin kaynak kodları GitHub üzerinden public olarak erişilebilir. AvvaMobile.Core.Parasut

Ayrıca örnek kullanım için bir Console uygulaması da repoda bulunmaktadır. AvvaMobile.Core.Parasut.Sample

Geliştirme Ekibine Katılım

Eğer geliştirme ekibine katılmak ve katkıda bulunmak isterseniz opensource@avvamobile.com adresinden bizimle iletişime geçerek repo ekibine katılabilir veya paket içerisinde geliştirilmesini istediğiniz konularda talepte bulunabilirsiniz.

Başlamadan Önce

Geliştirmeye başlamadan önce Paraşüt destek ekibi ile iletişime geçerek firmanız/hesabınız ile ilgili bazı bilgileri temin etmeniz gerekmektedir.

  • Username: Bu bilgi halihazırda Paraşüt'e giriş yapmak için kullandığınız kullanıcı olabilir ancak önerimiz sadece API için ayrı bir kullanıcı olurşturmanızdır.
  • Password: API bağlantısında kullanacağınız kullanıcının parolasıdır.
  • Client ID: Bu bilgiyi Paraşüt destek ekibinden edinebilirsiniz.
  • Client Secret: Bu bilgiyi Paraşüt destek ekibinden edinebilirsiniz.
  • Firma No: Bu bilgiyi kendinizde Paraşüt ekranlarındaki adres satırından edinebilirsiniz. Örnek olarak "https://uygulama.parasut.com/123456/" adresindeki "123456" sizin firma numaranızdır. Eğer numarayı bulmakta zorluk yaşıyorsanız yine Paraşüt destek ekibi size bu bilgiyi verecektir.

using

Yapılacak tüm işlemlerinizde aşağıdaki using bloklarını kullanmalısınız.

using AvvaMobile.Core.Parasut;
using AvvaMobile.Core.Parasut.Models.Common;
using AvvaMobile.Core.Parasut.Models.Requests;

Parasut objesi

Tüm işlemler için ortak bir noktada objesi oluşturarak kullanabilirsiniz.

var parasut = new Parasut
{
    CompanyID = "Company ID",
    Username = "Username",
    Password = "Password",
    ClientID = "Client ID",
    ClientSecret = "Client Secret"
};

Token Almak

using AvvaMobile.Core.Parasut;
using AvvaMobile.Core.Parasut.Models.Common;
using AvvaMobile.Core.Parasut.Models.Requests;

var parasut = new Parasut
{
    CompanyID = "Company ID",
    Username = "Username",
    Password = "Password",
    ClientID = "Client ID",
    ClientSecret = "Client Secret"
};

var getTokenResponse = await parasut.GetTokenAsync();
if (getTokenResponse.IsSuccess)
{
    Console.WriteLine("access_token: " + getTokenResponse.Data.access_token);
}
else
{
    Console.WriteLine("ERROR: " + getTokenResponse.Message);
}

Yeni Müşteri Yaratmak

using AvvaMobile.Core.Parasut;
using AvvaMobile.Core.Parasut.Models.Common;
using AvvaMobile.Core.Parasut.Models.Requests;

var parasut = new Parasut
{
    CompanyID = "Company ID",
    Username = "Username",
    Password = "Password",
    ClientID = "Client ID",
    ClientSecret = "Client Secret"
};

var customer = new Customer();
customer.attributes.email = "opensource@avvamobile.com";
customer.attributes.name = "AVVA MOBILE KURUMSAL ÇÖZÜMLER YAZILIM VE DANIŞMANLIK TİC. LTD. ŞTİ.";
customer.attributes.short_name = "Avva Mobile Enterprise Solutions";
customer.attributes.tax_office = "Büyük Mükellefler Vergi Dairesi";
customer.attributes.tax_number = "1234567890";
customer.attributes.iban = "TR00 0000 0000 0000 0000 0000 00";

var customerCreateResponse = await parasut.CustomerCreate(customer);

if (customerCreateResponse.IsSuccess)
{
    Console.WriteLine("Customer ID: " + customerCreateResponse.Data.data.id);
}
else
{
    Console.WriteLine("ERROR: " + customerCreateResponse.Message);
}

Müşterileri Listeleme

Kayıtlı olan tüm müşterileri, fitreleme seçenekleri ile listeler. Filtreleme yaparken bilgileri kayıtlardaki ile birebir olarak göndermelisiniz. Paraşüt LIKE veya CONTAINS gibi arama yapmamaktadır.

using AvvaMobile.Core.Parasut;
using AvvaMobile.Core.Parasut.Models.Common;
using AvvaMobile.Core.Parasut.Models.Requests;

var parasut = new Parasut
{
    CompanyID = "Company ID",
    Username = "Username",
    Password = "Password",
    ClientID = "Client ID",
    ClientSecret = "Client Secret"
};

var customerListRequest = new CustomerListRequest
{
    name = "AVVA MOBILE KURUMSAL ÇÖZÜMLER YAZILIM VE DANIŞMANLIK TİC. LTD. ŞTİ."
};

var customerListResponse = await parasut.CustomerList(customerListRequest);

foreach (var item in customerListResponse.Data.data)
{
    Console.WriteLine("Customer: " + item.attributes.name);
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.6 587 7/3/2023
1.1.5 506 5/9/2023
1.1.4 511 5/9/2023
1.1.3 512 5/8/2023
1.1.2 512 5/5/2023
1.1.1 542 4/20/2023
1.1.0 562 4/11/2023
1.0.9 801 10/4/2022
1.0.8 807 9/29/2022
1.0.6 776 9/29/2022
1.0.5 801 9/26/2022
1.0.4 844 9/26/2022
1.0.3 830 9/26/2022
1.0.2 795 9/26/2022
1.0.1 815 9/26/2022