GithubHelp home page GithubHelp logo

turkmvc / ggapi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zamion101/ggapi

0.0 0.0 0.0 24 KB

GittiGidiyor API import for use in Python.

License: GNU General Public License v3.0

Python 100.00%

ggapi's Introduction

GittiGidiyor API

This API created by Zamion101 for public use because of worst documentation on https://dev.gittigidiyor.com

How to use:

import GGAPI

api = GGAPI.GGPAI('username','password','api_key','secret_key')

"""
>username: Developer username
>password: Developer password (not GittiGidiyor account password!)
    -> if you don't have Developer account contact with **[email protected]**
>api_key: API key from your GittiGidiyor application (you can find or create in https://dev.gittigidiyor.com)
>secret_key: You can find or create as same as api_key
"""

cargoService = api.getCargoService()
productService = api.getProductService()
saleService = api.getSaleService()
storeService = api.getStoreService()
userMessageService = api.getUserMessageService()

"""
You can find all available methods with
print(dir(<serviceObject (like cargoService)>))
>>>
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__',
'__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__',
'__weakref__', 'auth', 'base_url', 'getCargoInformation', 'requestURL', 'request_type', 'sendCargoInformation', 'session', 'signature', 'timestamp', 'type']

"""
saleService.getActiveSales()
"""
(this return is beautified not real result is like that)
>>>
{
  "ackCode": "success",
  "responseTime": "2019-05-22 23:18:39",
  "timeElapsed": "11 ms",
  "count": "1",
  "itemList": {
    "item": {
      "productId": "445329567",
      "title": "App Test",
      "productLink": "https://urun.gittigidiyor.com/app-test_W0QQidZZ445329567",
      "format": "S",
      "buyNowPrice": "0.1",
      "highPrice": "0.0",
      "productCount": "9999",
      "soldProductCount": "0",
      "remainingTime": "55 gün : 18 s : 53 dk",
      "bidCount": "0",
      "watcherNumber": "0",
      "thumbImageLink": "https://mcdn01.gittigidiyor.net/44532/tn9/445329567_tn9_0.jpg"
    }
  }
}
...
"""
graph LR
A[GGAPI]
A --> B(Cargo Service)
A --> C(Product Service)
A --> D(Sale Service)
A --> E(Store Service)
A --> F(User Message Service)

B --> G{Json Request Return}
C --> G{Json Request Return}
D --> G{Json Request Return}
E --> G{Json Request Return}
F --> G{Json Request Return}

ggapi's People

Contributors

zamion101 avatar

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.