more specific price seach should be working

This commit is contained in:
2018-08-14 23:36:09 -05:00
parent 4757abfff3
commit 5423b81c95
9 changed files with 157 additions and 17 deletions

View File

@@ -3,7 +3,8 @@ import { http } from '../http';
export class PoeService {
public static async getStash(): Promise<any> {
const res = await http.get(
'https://pathofexile.com/character-window/get-stash-items?league=Incursion&tabs=1&tabIndex=6&accountName=DoctorCoctor',
'https://pathofexile.com/character-window/get-stash-items?' +
'league=Incursion&tabs=1&tabIndex=6&accountName=DoctorCoctor',
);
return res.data;
}
@@ -11,11 +12,7 @@ export class PoeService {
public static async priceCheck(item: any) {
const res = await http.get(`https://poeprices.info/api?l=Incursion&i=${encodeURI(btoa(item))}`, {
headers: {
// Host: 'poeprices.info',
// Connection: 'keep-alive',
'Cache-Control': 'max-age=600',
// Origin: 'https://poeprices.info',
// Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
},
});
return res.data;