Giter VIP home page Giter VIP logo

gittigidiyor's People

Contributors

kivancagaogluu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gittigidiyor's Issues

Sale Service

Hocam eline sağlık öncelikle ürün yönetimini tamamladım ürün yönetiminde güncelleme fonksiyonu yoktu onu da ekledim
sadece sipariş çekme kısmı kaldı
tek fonksiyon olsa bile yeter bir tane sale servis dosyası yüklermisin

Resim Hatası

stdClass Object ( [ackCode] => failure [responseTime] => 2021-09-15 15:44:07 [error] => stdClass Object ( [errorId] => 546 [errorCode] => [GG-API-ERROR_546] [message] => Model bilgisine ait foto için url ya da base64 girişi yapmalısınız. [viewMessage] => Model bilgisine ait geçersiz resim bilgisi girdiniz. ) ) stdClass Object ( [ackCode] => failure [responseTime] => 2021-09-15 15:44:08 [error] => stdClass Object ( [errorId] => 546 [errorCode] => [GG-API-ERROR_546] [message] => Model bilgisine ait foto için url ya da base64 girişi yapmalısınız. [viewMessage] => Model bilgisine ait geçersiz resim bilgisi girdiniz. ) )

S.a Hocam ürün acarken yukardaki hatayı alıyorum Nerde hata yapıorum bulamadım Yardımcı olurmusun

prepare("SELECT * FROM pazaryeriapi"); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); foreach ($result as $row) { if($row['id'] == '3') { $GGsetApiKey = $row['GapiKey']; $GGsetsecretKey = $row['GsecretKey']; $GGsetnick = $row['Gnick']; $GGsetpassword = $row['Gpassword']; $GGsetauth_user = $row['Gauth_user']; $GGsetauth_pass = $row['Gauth_pass']; } } use bluntk\Gittigidiyor; $config = [ 'apiKey' => $GGsetApiKey, 'secretKey' => $GGsetsecretKey, 'nick' => $GGsetnick, 'password' => $GGsetpassword, 'auth_user' => $GGsetauth_user, 'auth_pass' => $GGsetauth_pass, 'lang' => 'tr', ]; $gittigidiyor = new Gittigidiyor($config); $statement = $pdo->prepare("SELECT * FROM tbl_product "); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); foreach ($result as $row) { $Barcode = $row['barcode']; $title = $row['p_name']; $subtitle = $row['altbaslik']; $Attributes1 = $row['ggatribusname1']; $Attributesvalue1 = $row['ggatribusdeger1']; $Attributes2 = $row['ggatribusname2']; $Attributesvalue2 = $row['ggatribusdeger2']; $Attributes3 = $row['ggatribusname3']; $Attributesvalue3 = $row['ggatribusdeger3']; $Attributes4 = $row['ggatribusname4']; $Attributesvalue4 = $row['ggatribusdeger4']; $Attributes5 = $row['ggatribusname5']; $Attributesvalue5 = $row['ggatribusdeger5']; $productMainId = $row['Product_code']; $description = $row['p_description']; $salePrice = $row['ggfiyati']; $categoryId = $row['ggcategoryCode']; $ggsure = $row['ggsure']; $ggsehir = $row['ggsehir']; $ggkargoalni = $row['ggkargoalni']; $ggkargosablonu = $row['ggkargoucreti']; $quantity = $row['p_qty']; $stockCode = $row['Product_code']; $dimensionalWeight = $row['desi']; $currencyType = $row['CurrencyType']; $listPrice = $row['p_old_price']; $brand = $row['Brand']; $images = 'http://kervansanal.com/xml/photo/000050109010.jpg'; $params = []; $params['product'] = [ 'categoryCode' => $categoryId, 'storeCategoryId' => '', 'title' => $title, 'subtitle' => $subtitle, 'specs' => [ 'spec' => [ [ 'name' => $Attributes1, 'value' => $Attributesvalue1, 'type' => 'Combo', 'required' => true ], [ 'name' => $Attributes2, 'value' => $Attributesvalue2, 'type' => 'Combo', 'required' => true ], [ 'name' => $Attributes3, 'value' => $Attributesvalue3, 'type' => 'Combo', 'required' => true ], [ 'name' => $Attributes4, 'value' => $Attributesvalue4, 'type' => 'Combo', 'required' => true ], [ 'name' => $Attributes5, 'value' => $Attributesvalue5, 'type' => 'Combo', 'required' => true ], ] ], 'photos' => [ 'photo' => [ [ 'photoId' => 0, 'url' => $images, 'base64' => '' ], [ 'photoId' => 1, 'url' => '', 'base64' => '' ], [ 'photoId' => 2, 'url' => '', 'base64' => '' ], ] ], 'pageTemplate' => 1, 'description' => $description, 'startDate' => '', 'catalogId' => '', 'catalogDetail' => '', 'catalogFilter' => '', 'format' => 'S', 'startPrice' => '', 'buyNowPrice' => $salePrice, 'listingDays' => $ggsure, 'productCount' => 1, 'cargoDetail' => [ 'city' => $ggsehir, 'shippingPayment' => $ggkargosablonu, 'shippingWhere' => $ggkargoalni, 'cargoCompanyDetails' => [ 'cargoCompanyDetail' => [ 'name' => 'aras', 'cityPrice' => 10.00, 'countryPrice' => 10.00, ] ], 'shippingTime' => [ 'days' => 'today', 'beforeTime' => '10:30' ], ], 'affiliateOption' => false, 'boldOption' => false, 'catalogOption' => false, 'vitrineOption' => false, 'globalTradeItemNo' => null, 'manufacturerPartNo' => '', 'variantGroups' => [ 'variantGroup' => [ [ 'variants' => [ 'variant' => [ [ 'variantSpecs' => [ 'variantSpec' => [ [ 'nameId' => '', 'valueId' => '', ], [ 'nameId' => '', 'valueId' => '', ], ] ], 'quantity' => $quantity, 'stockCode' => $stockCode, ], [ 'variantSpecs' => [ 'variantSpec' => [ [ 'nameId' => '', 'valueId' => '', ], [ 'nameId' => '', 'valueId' => '', ], ] ], 'quantity' => $quantity, 'stockCode' => $stockCode, ], ] ], 'photos' => [ 'photo' => [ [ 'photoId' => 0, 'url' => '' ] ] ], ] ] ] ]; $productService = $gittigidiyor->product(); $result = $productService->insertAndActivateProduct($params); print_r($result); } ?>

bağlantı için

$config = [
'apiKey' => 'xx',
'secretKey' => 'xx',
'nick' => 'xx',
'password' => 'xx',
'auth_user' => 'xx',
'auth_pass' => 'xx',
'lang' => 'tr',
];
gittigidiyor apiKey, secretKey ,auth_user, auth_pass bunları veriyor ama nick ve password olarak ne girmemiz gerekiyor yardımcı olurmusnuz

GittiGidiyor API Config Bilgileri

bu apiyi kullanabilmek için API key ve secret key gerekiyor ancak ben bu bilgilere erişemiyorum elimde rol name ,rol pass,mağaza adı ve developer İD var ben bu bilgilerle apiye nasıl erişim sağlayacağım?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.