mirror of
https://bitbucket.org/vendoo/vendoo_v1.0.git
synced 2025-12-25 11:47:40 +00:00
Merged branch master into Posting-New-Etsy-Listings
This commit is contained in:
commit
b9b8e46983
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -218,11 +218,11 @@
|
|||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
filePath = "Vendoo/ListingPreviewViewController.swift"
|
||||||
timestampString = "491395746.298372"
|
timestampString = "491705640.842647"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "317"
|
startingLineNumber = "340"
|
||||||
endingLineNumber = "317"
|
endingLineNumber = "340"
|
||||||
landmarkName = "publishItem(_:)"
|
landmarkName = "publishItem(_:)"
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
@ -234,11 +234,11 @@
|
|||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
filePath = "Vendoo/ListingPreviewViewController.swift"
|
||||||
timestampString = "491395746.298372"
|
timestampString = "491705640.842647"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "342"
|
startingLineNumber = "366"
|
||||||
endingLineNumber = "342"
|
endingLineNumber = "366"
|
||||||
landmarkName = "publishItem(_:)"
|
landmarkName = "publishItem(_:)"
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
@ -266,7 +266,7 @@
|
|||||||
moduleName = "Vendoo"
|
moduleName = "Vendoo"
|
||||||
usesParentBreakpointCondition = "Yes"
|
usesParentBreakpointCondition = "Yes"
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EtsyRESTAPIManager.swift"
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EtsyRESTAPIManager.swift"
|
||||||
timestampString = "491530458.908998"
|
timestampString = "491705859.140832"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "216"
|
startingLineNumber = "216"
|
||||||
@ -281,7 +281,7 @@
|
|||||||
moduleName = "Vendoo"
|
moduleName = "Vendoo"
|
||||||
usesParentBreakpointCondition = "Yes"
|
usesParentBreakpointCondition = "Yes"
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EtsyRESTAPIManager.swift"
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EtsyRESTAPIManager.swift"
|
||||||
timestampString = "491530458.909179"
|
timestampString = "491705859.141037"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "219"
|
startingLineNumber = "219"
|
||||||
@ -401,6 +401,38 @@
|
|||||||
endingLineNumber = "610"
|
endingLineNumber = "610"
|
||||||
landmarkName = "sendPOSTRequest(_:body:onCompletion:)"
|
landmarkName = "sendPOSTRequest(_:body:onCompletion:)"
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
|
<Locations>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.EtsyRESTAPIManager.sendPOSTRequest (Swift.String, body : Swift.Dictionary<Swift.String, Swift.AnyObject>, onCompletion : Swift.Optional<(Swift.Optional<Swift.AnyObject>, Swift.Optional<__ObjC.NSError>) -> ()>) -> ()"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EtsyRESTAPIManager.swift"
|
||||||
|
timestampString = "491705859.144996"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "637"
|
||||||
|
endingLineNumber = "637"
|
||||||
|
offsetFromSymbolStart = "1052">
|
||||||
|
</Location>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.EtsyRESTAPIManager.(sendPOSTRequest (Swift.String, body : Swift.Dictionary<Swift.String, Swift.AnyObject>, onCompletion : Swift.Optional<(Swift.Optional<Swift.AnyObject>, Swift.Optional<__ObjC.NSError>) -> ()>) -> ()).(closure #1)"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EtsyRESTAPIManager.swift"
|
||||||
|
timestampString = "491705859.145161"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "639"
|
||||||
|
endingLineNumber = "639"
|
||||||
|
offsetFromSymbolStart = "51">
|
||||||
|
</Location>
|
||||||
|
</Locations>
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
<BreakpointProxy
|
<BreakpointProxy
|
||||||
@ -417,6 +449,38 @@
|
|||||||
endingLineNumber = "620"
|
endingLineNumber = "620"
|
||||||
landmarkName = "sendPOSTRequest(_:body:onCompletion:)"
|
landmarkName = "sendPOSTRequest(_:body:onCompletion:)"
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
|
<Locations>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.EtsyRESTAPIManager.sendPOSTRequest (Swift.String, body : Swift.Dictionary<Swift.String, Swift.AnyObject>, onCompletion : Swift.Optional<(Swift.Optional<Swift.AnyObject>, Swift.Optional<__ObjC.NSError>) -> ()>) -> ()"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EtsyRESTAPIManager.swift"
|
||||||
|
timestampString = "491705859.146074"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "637"
|
||||||
|
endingLineNumber = "637"
|
||||||
|
offsetFromSymbolStart = "1052">
|
||||||
|
</Location>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.EtsyRESTAPIManager.(sendPOSTRequest (Swift.String, body : Swift.Dictionary<Swift.String, Swift.AnyObject>, onCompletion : Swift.Optional<(Swift.Optional<Swift.AnyObject>, Swift.Optional<__ObjC.NSError>) -> ()>) -> ()).(closure #1)"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EtsyRESTAPIManager.swift"
|
||||||
|
timestampString = "491705859.146223"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "639"
|
||||||
|
endingLineNumber = "639"
|
||||||
|
offsetFromSymbolStart = "51">
|
||||||
|
</Location>
|
||||||
|
</Locations>
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
<BreakpointProxy
|
<BreakpointProxy
|
||||||
@ -442,7 +506,7 @@
|
|||||||
moduleName = "Vendoo"
|
moduleName = "Vendoo"
|
||||||
usesParentBreakpointCondition = "Yes"
|
usesParentBreakpointCondition = "Yes"
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
||||||
timestampString = "491530458.914535"
|
timestampString = "491705859.147976"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "272"
|
startingLineNumber = "272"
|
||||||
@ -457,7 +521,7 @@
|
|||||||
moduleName = "Vendoo"
|
moduleName = "Vendoo"
|
||||||
usesParentBreakpointCondition = "Yes"
|
usesParentBreakpointCondition = "Yes"
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
||||||
timestampString = "491530458.91464"
|
timestampString = "491705859.148176"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "275"
|
startingLineNumber = "275"
|
||||||
@ -481,6 +545,38 @@
|
|||||||
endingLineNumber = "538"
|
endingLineNumber = "538"
|
||||||
landmarkName = "sendPOSTRequest(_:body:onCompletion:)"
|
landmarkName = "sendPOSTRequest(_:body:onCompletion:)"
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
|
<Locations>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.EtsyRESTAPIManager.sendPOSTRequest (Swift.String, body : Swift.Dictionary<Swift.String, Swift.AnyObject>, onCompletion : Swift.Optional<(Swift.Optional<Swift.AnyObject>, Swift.Optional<__ObjC.NSError>) -> ()>) -> ()"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EtsyRESTAPIManager.swift"
|
||||||
|
timestampString = "491705859.149401"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "637"
|
||||||
|
endingLineNumber = "637"
|
||||||
|
offsetFromSymbolStart = "1052">
|
||||||
|
</Location>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.EtsyRESTAPIManager.(sendPOSTRequest (Swift.String, body : Swift.Dictionary<Swift.String, Swift.AnyObject>, onCompletion : Swift.Optional<(Swift.Optional<Swift.AnyObject>, Swift.Optional<__ObjC.NSError>) -> ()>) -> ()).(closure #1)"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EtsyRESTAPIManager.swift"
|
||||||
|
timestampString = "491705859.14957"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "639"
|
||||||
|
endingLineNumber = "639"
|
||||||
|
offsetFromSymbolStart = "51">
|
||||||
|
</Location>
|
||||||
|
</Locations>
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
<BreakpointProxy
|
<BreakpointProxy
|
||||||
@ -497,6 +593,38 @@
|
|||||||
endingLineNumber = "573"
|
endingLineNumber = "573"
|
||||||
landmarkName = "sendPOSTRequest(_:body:onCompletion:)"
|
landmarkName = "sendPOSTRequest(_:body:onCompletion:)"
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
|
<Locations>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.EtsyRESTAPIManager.sendPOSTRequest (Swift.String, body : Swift.Dictionary<Swift.String, Swift.AnyObject>, onCompletion : Swift.Optional<(Swift.Optional<Swift.AnyObject>, Swift.Optional<__ObjC.NSError>) -> ()>) -> ()"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EtsyRESTAPIManager.swift"
|
||||||
|
timestampString = "491705859.151383"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "637"
|
||||||
|
endingLineNumber = "637"
|
||||||
|
offsetFromSymbolStart = "1052">
|
||||||
|
</Location>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.EtsyRESTAPIManager.(sendPOSTRequest (Swift.String, body : Swift.Dictionary<Swift.String, Swift.AnyObject>, onCompletion : Swift.Optional<(Swift.Optional<Swift.AnyObject>, Swift.Optional<__ObjC.NSError>) -> ()>) -> ()).(closure #1)"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EtsyRESTAPIManager.swift"
|
||||||
|
timestampString = "491705859.151719"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "639"
|
||||||
|
endingLineNumber = "639"
|
||||||
|
offsetFromSymbolStart = "51">
|
||||||
|
</Location>
|
||||||
|
</Locations>
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
<BreakpointProxy
|
<BreakpointProxy
|
||||||
@ -529,6 +657,38 @@
|
|||||||
endingLineNumber = "583"
|
endingLineNumber = "583"
|
||||||
landmarkName = "sendPOSTRequest(_:body:onCompletion:)"
|
landmarkName = "sendPOSTRequest(_:body:onCompletion:)"
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
|
<Locations>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.EtsyRESTAPIManager.sendPOSTRequest (Swift.String, body : Swift.Dictionary<Swift.String, Swift.AnyObject>, onCompletion : Swift.Optional<(Swift.Optional<Swift.AnyObject>, Swift.Optional<__ObjC.NSError>) -> ()>) -> ()"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EtsyRESTAPIManager.swift"
|
||||||
|
timestampString = "491705859.153852"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "637"
|
||||||
|
endingLineNumber = "637"
|
||||||
|
offsetFromSymbolStart = "1052">
|
||||||
|
</Location>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.EtsyRESTAPIManager.(sendPOSTRequest (Swift.String, body : Swift.Dictionary<Swift.String, Swift.AnyObject>, onCompletion : Swift.Optional<(Swift.Optional<Swift.AnyObject>, Swift.Optional<__ObjC.NSError>) -> ()>) -> ()).(closure #1)"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EtsyRESTAPIManager.swift"
|
||||||
|
timestampString = "491705859.154091"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "639"
|
||||||
|
endingLineNumber = "639"
|
||||||
|
offsetFromSymbolStart = "51">
|
||||||
|
</Location>
|
||||||
|
</Locations>
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
<BreakpointProxy
|
<BreakpointProxy
|
||||||
@ -579,5 +739,133 @@
|
|||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "491663148.106172"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "319"
|
||||||
|
endingLineNumber = "319"
|
||||||
|
landmarkName = "publishItem(_:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
<Locations>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.ListingPreviewViewController.publishItem (Swift.AnyObject) -> ()"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "491705859.15903"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "319"
|
||||||
|
endingLineNumber = "319"
|
||||||
|
offsetFromSymbolStart = "63607">
|
||||||
|
</Location>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.ListingPreviewViewController.(publishItem (Swift.AnyObject) -> ()).(closure #3)"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "491705859.159181"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "322"
|
||||||
|
endingLineNumber = "322"
|
||||||
|
offsetFromSymbolStart = "27">
|
||||||
|
</Location>
|
||||||
|
</Locations>
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/FacebookGraphAPIManager.swift"
|
||||||
|
timestampString = "491663741.559167"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "101"
|
||||||
|
endingLineNumber = "101"
|
||||||
|
landmarkName = "authorizeApp(_:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/FacebookGraphAPIManager.swift"
|
||||||
|
timestampString = "491665315.599077"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "107"
|
||||||
|
endingLineNumber = "107"
|
||||||
|
landmarkName = "authorizeApp(_:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/FacebookGraphAPIManager.swift"
|
||||||
|
timestampString = "491666616.032419"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "179"
|
||||||
|
endingLineNumber = "179"
|
||||||
|
landmarkName = "makePOSTResquest(_:params:onComplete:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "491705464.709697"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "326"
|
||||||
|
endingLineNumber = "326"
|
||||||
|
landmarkName = "publishItem(_:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/FacebookGraphAPIManager.swift"
|
||||||
|
timestampString = "491705591.378973"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "187"
|
||||||
|
endingLineNumber = "187"
|
||||||
|
landmarkName = "makePOSTResquest(_:params:onComplete:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
</Breakpoints>
|
</Breakpoints>
|
||||||
</Bucket>
|
</Bucket>
|
||||||
|
|||||||
@ -9,11 +9,42 @@
|
|||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
class EbaySettingsViewController: UIViewController {
|
class EbaySettingsViewController: UIViewController {
|
||||||
|
var wereDefaultsChanged: Bool = NSUserDefaults.standardUserDefaults().boolForKey("ebayDefaultsOverriden")
|
||||||
|
|
||||||
|
//IBOutlets
|
||||||
|
@IBOutlet weak var listingTypeBtn: UIButton!
|
||||||
|
|
||||||
|
@IBOutlet weak var conditonBtn: UIButton!
|
||||||
|
|
||||||
|
@IBOutlet weak var listingDurationBtn: UIButton!
|
||||||
|
|
||||||
|
@IBOutlet weak var ebaySite: UIButton!
|
||||||
|
|
||||||
|
@IBOutlet weak var shippingBtn: UIButton!
|
||||||
|
|
||||||
|
@IBOutlet weak var paymentBtn: UIButton!
|
||||||
|
|
||||||
|
@IBOutlet weak var returnPolicyBtn: UIButton!
|
||||||
|
|
||||||
|
@IBOutlet weak var userID: UILabel!
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var ebayManager: EbayWebServiceManager!
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
self.ebayManager.reinit()
|
||||||
// Do any additional setup after loading the view.
|
// Do any additional setup after loading the view.
|
||||||
|
if(wereDefaultsChanged) {
|
||||||
|
//change button labels to reflect user selected defaults
|
||||||
|
}
|
||||||
|
dispatch_async(dispatch_get_main_queue(), {
|
||||||
|
print(EbayWebServiceManager.settingsDictionary["userID"] as? String)
|
||||||
|
self.userID.text = EbayWebServiceManager.settingsDictionary["userID"] as? String
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override func didReceiveMemoryWarning() {
|
override func didReceiveMemoryWarning() {
|
||||||
@ -22,6 +53,8 @@ class EbaySettingsViewController: UIViewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// MARK: - Navigation
|
// MARK: - Navigation
|
||||||
|
|
||||||
@ -32,8 +65,16 @@ class EbaySettingsViewController: UIViewController {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//MARK:- Class Methods
|
||||||
|
extension EbaySettingsViewController {
|
||||||
|
|
||||||
|
func loadManager (ebayManager: EbayWebServiceManager) {
|
||||||
|
self.ebayManager = ebayManager
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//MARK:- IBActions
|
//MARK:- IBActions
|
||||||
extension EbaySettingsViewController {
|
extension EbaySettingsViewController {
|
||||||
@ -44,4 +85,25 @@ extension EbaySettingsViewController {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@IBAction func selectListingType(sender: AnyObject) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func selectCondition(sender: AnyObject) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func selectListingDuration(sender: AnyObject) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func selectEbaySite(sender: AnyObject) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func selectShipping(sender: AnyObject) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func selectPayment(sender: AnyObject) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@IBAction func selectReturnPolicy(sender: AnyObject) {
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -31,6 +31,7 @@ class EbayWebServiceManager: NSObject {
|
|||||||
private var xmlResponseDictionary: Dictionary<String, AnyObject!> = Dictionary<String, AnyObject!>()
|
private var xmlResponseDictionary: Dictionary<String, AnyObject!> = Dictionary<String, AnyObject!>()
|
||||||
var delegate: EbayWebServiceManagerDelegate?
|
var delegate: EbayWebServiceManagerDelegate?
|
||||||
var isAuthorized: Bool = NSUserDefaults.standardUserDefaults().boolForKey("ebayAuthorized")
|
var isAuthorized: Bool = NSUserDefaults.standardUserDefaults().boolForKey("ebayAuthorized")
|
||||||
|
static var settingsDictionary = Dictionary<String , AnyObject>()
|
||||||
//let tradingClient = EBayTradingServiceClient.sharedClient()
|
//let tradingClient = EBayTradingServiceClient.sharedClient()
|
||||||
//---------------------------------------------//
|
//---------------------------------------------//
|
||||||
//let tradingClient = SOAPEngine()
|
//let tradingClient = SOAPEngine()
|
||||||
@ -51,51 +52,46 @@ class EbayWebServiceManager: NSObject {
|
|||||||
self.xmlResponseDictionary["eBayAuthToken"] = dictionary?["ebay_oauth"] as? String
|
self.xmlResponseDictionary["eBayAuthToken"] = dictionary?["ebay_oauth"] as? String
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//set default posting settings for ebay
|
||||||
|
if(NSUserDefaults.standardUserDefaults().boolForKey("ebayDefaultsOverriden")) {
|
||||||
|
|
||||||
/*
|
EbayWebServiceManager.settingsDictionary = (NSUserDefaults.standardUserDefaults().objectForKey("ebaySettings") as? Dictionary<String, AnyObject>)!
|
||||||
tradingClient.userAgent = "SOAPEngine"
|
}
|
||||||
tradingClient.actionNamespaceSlash = true
|
else{
|
||||||
tradingClient.version = SOAPVersion.VERSION_1_1
|
|
||||||
tradingClient.responseHeader = true
|
|
||||||
tradingClient.header = "<key name=\"X-EBAY-API-COMPATIBILITY-LEVEL\">967</key>"+"<key name=\"X-EBAY-API-DEV-NAME\">" + self.devKey + "</key>" + "<key name=\"X-EBAY-API-CERT-NAME\">" + self.certID + "</key>" + "<key name=\"X-EBAY-API-CALL-NAME\">GetSessionID</key>"
|
|
||||||
|
|
||||||
tradingClient.setIntegerValue(967, forKey: "X-EBAY-API-COMPATIBILITY-LEVEL")
|
EbayWebServiceManager.settingsDictionary = ([
|
||||||
//tradingClient.setValue(self.devKey, forKey: "X-EBAY-API-DEV-NAME")
|
"listingType":"FixedPriceItem",
|
||||||
//tradingClient.setValue(tradingClient.apiKey, forKey: "X-EBAY-API-APP-NAME")
|
"condition":"1500",
|
||||||
tradingClient.setIntegerValue(0, forKey: "X-EBAY-API-SITEID")
|
"listingDuration":"Days_7",
|
||||||
//tradingClient.setValue(self.certID, forKey: "X-EBAY-API-CERT-NAME")
|
"ebaySite":"US",
|
||||||
//tradingClient.setValue("GeteBayOfficialTime", forKey: "X-EBAY-API-CALL-NAME")
|
"currency":"USD",
|
||||||
tradingClient.envelope = "xmlns=\"urn:ebay:apis:eBLBaseComponents\""
|
"shipping": [
|
||||||
tradingClient.authorizationMethod = SOAPAuthorization.AUTH_TOKEN
|
"shippingType": "Flat",
|
||||||
tradingClient.requestURL(self.baseURL, soapAction: self.baseURL+"GetSessionID", completeWithDictionary:
|
"freeShipping": "true",
|
||||||
{(statusCode : Int,
|
"shippingServicePriority": "1",
|
||||||
dict : [NSObject : AnyObject]!) -> Void in
|
"shippingService":"UPSGround",
|
||||||
print(statusCode)
|
"shippingServiceAdditionalCost":"0.00"
|
||||||
let result:Dictionary = dict as Dictionary
|
],
|
||||||
NSLog("%@", result)
|
"payment":"PayPal",
|
||||||
}, failWithError:
|
"return":"ReturnsNotAccepted",
|
||||||
{(error : NSError!) -> Void in
|
"postalCode":"00000"
|
||||||
NSLog("%@", error)
|
|
||||||
})
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*tradingClient.requestURL(baseURL, soapAction: baseURL+"/GetSessionID", completeWithDictionary:
|
] as Dictionary<String, AnyObject>)
|
||||||
{(statusCode : Int,
|
|
||||||
dict : [NSObject : AnyObject]!) -> Void in
|
|
||||||
|
|
||||||
let result:Dictionary = dict as Dictionary
|
|
||||||
NSLog("%@", result)
|
|
||||||
}, failWithError:
|
|
||||||
{(error : NSError!) -> Void in
|
|
||||||
NSLog("%@", error)
|
|
||||||
})*/
|
|
||||||
|
|
||||||
|
NSUserDefaults.standardUserDefaults().setObject(EbayWebServiceManager.settingsDictionary, forKey: "ebaySettings")
|
||||||
|
|
||||||
|
NSUserDefaults.standardUserDefaults().setBool(true, forKey: "ebayDefaultsOverriden")
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func reinit() {
|
||||||
|
|
||||||
|
EbayWebServiceManager.settingsDictionary = (NSUserDefaults.standardUserDefaults().objectForKey("ebaySettings") as? Dictionary<String, AnyObject>)!
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -242,13 +238,30 @@ extension EbayWebServiceManager: NSXMLParserDelegate {
|
|||||||
|
|
||||||
//Test authentication
|
//Test authentication
|
||||||
let soapmessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
|
let soapmessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
|
||||||
"<GeteBayOfficialTimeRequest xmlns=\"urn:ebay:apis:eBLBaseComponents\">" +
|
"<GetUserRequest xmlns=\"urn:ebay:apis:eBLBaseComponents\">" +
|
||||||
"<RequesterCredentials><eBayAuthToken>\(string)</eBayAuthToken>" +
|
"<RequesterCredentials><eBayAuthToken>\(string)</eBayAuthToken>" +
|
||||||
"</RequesterCredentials></GeteBayOfficialTimeRequest>"
|
"</RequesterCredentials></GetUserRequest>"
|
||||||
|
|
||||||
|
/*
|
||||||
|
*<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<GetUserRequest xmlns="urn:ebay:apis:eBLBaseComponents">
|
||||||
|
<!-- Call-specific Input Fields -->
|
||||||
|
<IncludeFeatureEligibility> boolean </IncludeFeatureEligibility>
|
||||||
|
<ItemID> ItemIDType (string) </ItemID>
|
||||||
|
<UserID> string </UserID>
|
||||||
|
<!-- Standard Input Fields -->
|
||||||
|
<DetailLevel> DetailLevelCodeType </DetailLevel>
|
||||||
|
<!-- ... more DetailLevel values allowed here ... -->
|
||||||
|
<ErrorLanguage> string </ErrorLanguage>
|
||||||
|
<MessageID> string </MessageID>
|
||||||
|
<Version> string </Version>
|
||||||
|
<WarningLevel> WarningLevelCodeType </WarningLevel>
|
||||||
|
</GetUserRequest>
|
||||||
|
*/
|
||||||
|
|
||||||
let url = NSURL(string: self.baseURL)
|
let url = NSURL(string: self.baseURL)
|
||||||
let theRequest = NSMutableURLRequest(URL: url!)
|
let theRequest = NSMutableURLRequest(URL: url!)
|
||||||
theRequest.addValue("GeteBayOfficialTime", forHTTPHeaderField: "X-EBAY-API-CALL-NAME")
|
theRequest.addValue("GetUser", forHTTPHeaderField: "X-EBAY-API-CALL-NAME")
|
||||||
|
|
||||||
self.requestMaker(soapmessage, theRequest: theRequest)
|
self.requestMaker(soapmessage, theRequest: theRequest)
|
||||||
|
|
||||||
@ -265,6 +278,11 @@ extension EbayWebServiceManager: NSXMLParserDelegate {
|
|||||||
case "HardExpirationTime" :
|
case "HardExpirationTime" :
|
||||||
print(string)
|
print(string)
|
||||||
break
|
break
|
||||||
|
case "UserID" :
|
||||||
|
print(string)
|
||||||
|
EbayWebServiceManager.settingsDictionary["userID"] = string
|
||||||
|
NSUserDefaults.standardUserDefaults().setObject(EbayWebServiceManager.settingsDictionary, forKey: "ebaySettings")
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
//print(string)
|
//print(string)
|
||||||
print("\(self.currentElementName):\(string)")
|
print("\(self.currentElementName):\(string)")
|
||||||
|
|||||||
@ -173,12 +173,13 @@ extension FacebookGraphAPIManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//used to post to users timeline, path must start with '/'
|
//used to post to users timeline, path must start with '/'
|
||||||
func makePOSTResquest(requestPath: String!, params: [NSObject: AnyObject]!){
|
func makePOSTResquest(requestPath: String!, var params: [NSObject: AnyObject]!, onComplete: ServiceResponse){
|
||||||
|
|
||||||
|
|
||||||
/*if(FBSDKAccessToken.currentAccessToken() != nil && FBSDKAccessToken.currentAccessToken().hasGranted("pubish_actions")){*/
|
if(FBSDKAccessToken.currentAccessToken() != nil && FBSDKAccessToken.currentAccessToken().hasGranted("publish_actions")){
|
||||||
|
params["access_token"] = self.apiKey + "|" + self.apiSecret
|
||||||
|
|
||||||
let graphRequest: FBSDKGraphRequest = FBSDKGraphRequest(graphPath: requestPath, parameters: params, HTTPMethod: "POST")
|
let graphRequest: FBSDKGraphRequest = FBSDKGraphRequest(graphPath: requestPath + "?access_token=" + FBSDKAccessToken.currentAccessToken().tokenString, parameters: params, HTTPMethod: "POST")
|
||||||
graphRequest.startWithCompletionHandler({
|
graphRequest.startWithCompletionHandler({
|
||||||
(id, result, error) -> Void in
|
(id, result, error) -> Void in
|
||||||
|
|
||||||
@ -186,22 +187,23 @@ extension FacebookGraphAPIManager {
|
|||||||
if(error == nil){
|
if(error == nil){
|
||||||
|
|
||||||
print(result["id"])
|
print(result["id"])
|
||||||
self.delegate?.listingUploadedFB((result["id"] as? String)!)
|
//self.delegate?.listingUploadedFB((result["id"] as? String)!)
|
||||||
print(result)
|
print(result)
|
||||||
|
onComplete((result["id"] as? String)!, nil)
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
print(error)
|
||||||
}
|
}
|
||||||
//save id in firebase so retrieval can be done later
|
//save id in firebase so retrieval can be done later
|
||||||
})
|
})
|
||||||
//}
|
}
|
||||||
/*else{
|
/*else{
|
||||||
print("must reauthenticate facebook")
|
print("must reauthenticate facebook")
|
||||||
}*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*/}
|
||||||
|
|
||||||
//used to delete permissions and listings from users timeline, path must start with '/'
|
//used to delete permissions and listings from users timeline, path must start with '/'
|
||||||
func makeDELETIONResquest(requestPath: String!, params: [NSObject: AnyObject]!) -> Bool{
|
func makeDELETIONResquest(requestPath: String!, params: [NSObject: AnyObject]!) -> Bool{
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,7 @@ class ListingPreviewViewController: UIViewController {
|
|||||||
self.networks.delegate = self
|
self.networks.delegate = self
|
||||||
self.networks.dataSource = self
|
self.networks.dataSource = self
|
||||||
self.networks.backgroundView?.backgroundColor = UIColor.whiteColor()
|
self.networks.backgroundView?.backgroundColor = UIColor.whiteColor()
|
||||||
self.graphManager.delegate = self
|
//self.graphManager.delegate = self
|
||||||
}
|
}
|
||||||
|
|
||||||
override func viewDidAppear(animated: Bool) {
|
override func viewDidAppear(animated: Bool) {
|
||||||
@ -110,9 +110,9 @@ extension Dictionary {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
//MARK: - FacebookGraphAPIManagerDelegate methods
|
//MARK: - FacebookGraphAPIManagerDelegate methods
|
||||||
extension ListingPreviewViewController: FacebookGraphAPIManagerDelegate {
|
extension ListingPreviewViewController: FacebookGraphAPIManagerDelegate {
|
||||||
func listingUploadedFB(fbID: String) {
|
func listingUploadedFB(fbID: String) {
|
||||||
|
|
||||||
self.firManager.ref.child("Users").child("\(self.firManager.user_email)").child("user_Listings").child(self.lastListingKey).updateChildValues(["network_listing_IDs":["fbID":fbID]])
|
self.firManager.ref.child("Users").child("\(self.firManager.user_email)").child("user_Listings").child(self.lastListingKey).updateChildValues(["network_listing_IDs":["fbID":fbID]])
|
||||||
@ -122,8 +122,8 @@ extension ListingPreviewViewController: FacebookGraphAPIManagerDelegate {
|
|||||||
|
|
||||||
self.presentViewController(self.alert, animated: true, completion: nil)
|
self.presentViewController(self.alert, animated: true, completion: nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
//MARK: - IBActions
|
//MARK: - IBActions
|
||||||
extension ListingPreviewViewController {
|
extension ListingPreviewViewController {
|
||||||
@ -300,15 +300,49 @@ extension ListingPreviewViewController {
|
|||||||
//post to facebook
|
//post to facebook
|
||||||
if(self.networksDictionary["facebook"]!){
|
if(self.networksDictionary["facebook"]!){
|
||||||
dispatch_group_enter(postingGroup)
|
dispatch_group_enter(postingGroup)
|
||||||
let parameters: Dictionary<String, AnyObject> = ["message":("**"+self.itemTitle.text!+"**\n\n"+"Price: "+self.itemPrice.text! + "\n\n"+self.itemDescription.text!)]
|
|
||||||
|
let tmpDirURL = NSURL.fileURLWithPath(NSTemporaryDirectory(), isDirectory: true)
|
||||||
|
let fileURL = tmpDirURL.URLByAppendingPathComponent("main").URLByAppendingPathExtension("jpg")
|
||||||
|
print("FilePath: \(fileURL.path!)")
|
||||||
|
do {
|
||||||
|
try UIImageJPEGRepresentation(self.itemPicture.image!, 0.45)!.writeToFile(fileURL.path!, options: NSDataWritingOptions.AtomicWrite)
|
||||||
|
}catch{
|
||||||
|
(error)
|
||||||
|
print(error)
|
||||||
|
}
|
||||||
|
|
||||||
|
//let parameters: Dictionary<String, AnyObject> = ["message":("**"+self.itemTitle.text!+"**\n\n"+"Price: "+self.itemPrice.text! + "\n\n"+self.itemDescription.text!)]
|
||||||
|
|
||||||
|
let parameters: Dictionary<String, AnyObject> = ["Source": UIImageJPEGRepresentation(self.itemPicture.image!, 0.45)!, "published":false]
|
||||||
|
|
||||||
self.lastListingKey = newListingRef.key
|
self.lastListingKey = newListingRef.key
|
||||||
self.graphManager.makePOSTResquest("me/feed", params: parameters)
|
self.graphManager.makePOSTResquest("me/photos", params: parameters, onComplete: {
|
||||||
|
(imageId, error) -> Void in
|
||||||
|
|
||||||
|
var listingParams: Dictionary<String, AnyObject> = ["message":("**"+self.itemTitle.text!+"**\n\n"+"Price: "+self.itemPrice.text! + "\n\n"+self.itemDescription.text!), "attached_media[0]":"{\"media_fbid\":\"\(imageId as! String)\"}"]
|
||||||
|
self.graphManager.makePOSTResquest("me/feed", params: listingParams, onComplete: {
|
||||||
|
(listingId, error) -> Void in
|
||||||
|
|
||||||
|
if((self.newInProgressListing["networkIDs"] == nil)){
|
||||||
|
self.newInProgressListing["networkIDs"] = Dictionary<String, AnyObject>()
|
||||||
|
}
|
||||||
|
var networkIDs = (self.newInProgressListing["networkIDs"] as! Dictionary<String, AnyObject>)
|
||||||
|
networkIDs["facebook"] = listingId as! String
|
||||||
|
self.newInProgressListing["networkIDs"] = networkIDs
|
||||||
|
dispatch_group_leave(postingGroup)
|
||||||
|
|
||||||
|
|
||||||
|
})
|
||||||
|
/*
|
||||||
|
|
||||||
|
*/
|
||||||
|
})
|
||||||
|
|
||||||
//let parameters: Dictionary<String, AnyObject> = ["":""]
|
//let parameters: Dictionary<String, AnyObject> = ["":""]
|
||||||
|
|
||||||
dispatch_group_leave(postingGroup)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch_group_notify(postingGroup, dispatch_get_main_queue(), {
|
dispatch_group_notify(postingGroup, dispatch_get_main_queue(), {
|
||||||
self.newInProgressListing.update(["listingID": newListingRef.key,
|
self.newInProgressListing.update(["listingID": newListingRef.key,
|
||||||
"seller email": (NSUserDefaults.standardUserDefaults().objectForKey("email") as? String)!,
|
"seller email": (NSUserDefaults.standardUserDefaults().objectForKey("email") as? String)!,
|
||||||
|
|||||||
@ -112,6 +112,9 @@ extension NetworksTableViewController {
|
|||||||
(segue.destinationViewController as! ListingPreviewViewController).setManagers(self.graphManager, fireManager: self.firManager, ebayManager: self.ebayManager, etsyManager: self.etsyManager)
|
(segue.destinationViewController as! ListingPreviewViewController).setManagers(self.graphManager, fireManager: self.firManager, ebayManager: self.ebayManager, etsyManager: self.etsyManager)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(segue.identifier == "EbaySettingsSegue") {
|
||||||
|
(segue.destinationViewController as! EbaySettingsViewController).loadManager(self.ebayManager)
|
||||||
|
}
|
||||||
if(segue.identifier == "EtsySettingsSegue") {
|
if(segue.identifier == "EtsySettingsSegue") {
|
||||||
(segue.destinationViewController as! EtsySettingsViewController).loadManager(self.etsyManager)
|
(segue.destinationViewController as! EtsySettingsViewController).loadManager(self.etsyManager)
|
||||||
}
|
}
|
||||||
@ -491,7 +494,7 @@ extension NetworksTableViewController: UITableViewDelegate {
|
|||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
/*
|
||||||
//case where class is being used to authorize a network for the app to post on
|
//case where class is being used to authorize a network for the app to post on
|
||||||
switch (indexPath.row){
|
switch (indexPath.row){
|
||||||
case 0:
|
case 0:
|
||||||
@ -631,7 +634,7 @@ extension NetworksTableViewController: UITableViewDelegate {
|
|||||||
|
|
||||||
break
|
break
|
||||||
|
|
||||||
}
|
}*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -677,12 +680,14 @@ extension NetworksTableViewController: UITableViewDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extension NetworksTableViewController: EbayWebServiceManagerDelegate {
|
extension NetworksTableViewController: EbayWebServiceManagerDelegate {
|
||||||
|
|
||||||
func signInUser(signInString : String!) {
|
func signInUser(signInString : String!) {
|
||||||
let myWebView:UIWebView = UIWebView(frame: CGRectMake(0, 0, UIScreen.mainScreen().bounds.width, UIScreen.mainScreen().bounds.height))
|
let myWebView:UIWebView = UIWebView(frame: CGRectMake(0, 0, UIScreen.mainScreen().bounds.width, UIScreen.mainScreen().bounds.height))
|
||||||
myWebView.delegate = self
|
myWebView.delegate = self
|
||||||
myWebView.loadRequest(NSURLRequest(URL: NSURL(string: signInString)!))
|
myWebView.loadRequest(NSURLRequest(URL: NSURL(string: signInString)!))
|
||||||
self.view.addSubview(myWebView)
|
self.view.addSubview(myWebView)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extension NetworksTableViewController: UIWebViewDelegate {
|
extension NetworksTableViewController: UIWebViewDelegate {
|
||||||
@ -755,6 +760,14 @@ extension NetworksTableViewController {
|
|||||||
})
|
})
|
||||||
break
|
break
|
||||||
case is FBTableViewCell.Type:
|
case is FBTableViewCell.Type:
|
||||||
|
let tabBar = self.tabBarController
|
||||||
|
((tabBar as? HomeViewController)?.fbGraphManager.authorizeApp(self))!
|
||||||
|
dispatch_async(dispatch_get_main_queue(), {
|
||||||
|
sender.setTitle("Logout", forState: UIControlState.Normal)
|
||||||
|
(sender.superview?.superview as! FBTableViewCell).settingsBtn.enabled = true
|
||||||
|
(sender.superview?.superview as! FBTableViewCell).settingsBtn.hidden = false
|
||||||
|
})
|
||||||
|
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
@ -785,6 +798,13 @@ extension NetworksTableViewController {
|
|||||||
})
|
})
|
||||||
break
|
break
|
||||||
case is FBTableViewCell.Type:
|
case is FBTableViewCell.Type:
|
||||||
|
let tabBar = self.tabBarController
|
||||||
|
((tabBar as? HomeViewController)?.fbGraphManager.deAuthorizeApp(self))!
|
||||||
|
dispatch_async(dispatch_get_main_queue(), {
|
||||||
|
sender.setTitle("Login", forState: UIControlState.Normal)
|
||||||
|
(sender.superview?.superview as! FBTableViewCell).settingsBtn.enabled = false
|
||||||
|
(sender.superview?.superview as! FBTableViewCell).settingsBtn.hidden = true
|
||||||
|
})
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user