Comments (3)
@aytaa Aynı hatayı alıyorum. Dev console dan requestleri takip ettim fakat yinede bir sonuç alamadım. Sorun nerede bulamıyorum :(
from fatura.
@aytaa Sonunda birşeyler elde ettim, kütüphaneyi baştan yazıyorum :D
test url sini kullanarak girdikten sonra gelen giden istekleri dispatch başlığı ile chorme dev tools yardımıyla takip edersen istenilen request şeklini görebilirsin. Direk requesti fetch olarak koplayadım, daha sonra herşey netleşti. Get token operasyonu için örneği aşağıya bırakıyorum. Yakın zamanda geliştirdiğim yazılım için repo açarım.
// GET token
fetch("https://earsivportaltest.efatura.gov.tr/earsiv-services/assos-login", {
headers: {
accept: "*/*",
"accept-language": "tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7",
"content-type": "application/x-www-form-urlencoded;charset=UTF-8",
"sec-ch-ua":
'"Chromium";v="88", "Google Chrome";v="88", ";Not A Brand";v="99"',
"sec-ch-ua-mobile": "?0",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
},
referrer: "https://earsivportaltest.efatura.gov.tr/login.jsp",
referrerPolicy: "strict-origin-when-cross-origin",
body: "assoscmd=login&rtype=json&userid=33333312&sifre=1&parola=1&",
method: "POST",
mode: "cors",
credentials: "omit",
}).then((x) => x.json().then((data) => console.log(data)));
from fatura.
Çok inceledim ama bir sonuca ulaşamadım
from fatura.
Related Issues (17)
- XML Olarak indirme HOT 5
- Bize kesilen faturalar HOT 2
- NPM reposu güncel değil HOT 1
- Logout
- Bir lisans dosyası eklenmeli HOT 1
- createDraftInvoice hatası HOT 7
- Kesilmiş Faturaların Detaylarına ulaşmak
- No 'Access-Control-Allow-Origin' hatası
- Login Failed Hatası HOT 5
- viewInvoice is not defined when used in create-react-app HOT 1
- dijital.gib.gov.tr sorunu
- ggggg
- l,,
- createDraftInvoice ile fatura oluşturamıyorum HOT 2
- Sms ve Eimza doğrulaması hk.
- API dokümantasyonu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fatura.