Skip to content

Instantly share code, notes, and snippets.

View ecr007's full-sized avatar
Github Refactoring ... 10%

ECR007 ecr007

Github Refactoring ... 10%
  • ...
  • In The World
View GitHub Profile
@ecr007
ecr007 / volley-POST-example.java
Created December 19, 2017 01:21 — forked from mombrea/volley-POST-example.java
Example of performing a POST request using Google Volley for Android
public static void postNewComment(Context context,final UserAccount userAccount,final String comment,final int blogId,final int postId){
mPostCommentResponse.requestStarted();
RequestQueue queue = Volley.newRequestQueue(context);
StringRequest sr = new StringRequest(Request.Method.POST,"http://api.someservice.com/post/comment", new Response.Listener<String>() {
@Override
public void onResponse(String response) {
mPostCommentResponse.requestCompleted();
}
}, new Response.ErrorListener() {
@Override
@ecr007
ecr007 / JOSNArraySwiftParsingiOS
Created November 17, 2017 19:04 — forked from ashishkakkad8/JOSNArraySwiftParsingiOS
JSON Array Parsing in Swift Langauage - Swift 3 – iOS 10 – Xcode 8 GM
//
// ViewController.swift
// SwiftJSONParsingDemo
//
// Created by Ashish Kakkad on 12/10/16.
// Copyright © 2016 Kode. All rights reserved.
//
import UIKit