Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.github.gabrielruiu:spring-social-yahoo

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.gabrielruiu:spring-social-yahoo

Spring Social Yahoo is an extension based on Spring Social that provides functionality to communicate with the Yahoo Social Rest API

  • 1.0.0.RELEASE
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

spring-social-yahoo

Build Status

Spring Social Yahoo is an extension based on Spring Social that provides functionality to communicate with the Yahoo Social Rest API. You can find the full documentation at Yahoo's developer website. Before proceeding with using this library, please consult the Notes section. The best way to learn how use the library is to consult the Spring Social documentation and apply those principles for the classes specific to Yahoo.

Do not hesitate to point out any issues and I am very open to suggestions, both in terms of implementation and documentation

Changelist

1.0.0.RELEASE

  • first version release

Notes

  • not all endpoints and functionalities are implemented from tha Yahoo Social API; if there are requests to implement some extras, please leave me a message and I will oblige with a response
  • when implementing a connection repository, note that the default JdbcUsersConnectionRepository.sql constructs a table whose max length for the access token is 255, which is less than the length of the token received from Yahoo (about 700 characters), so you need to copy the original JdbcUsersConnectionRepository.sql file and modify the max length of the accessToken column (you can go for 1000 max length)
  • you can give spring-social-yahoo a try by cloning the forked repo of spring-social-samples, available on my account at https://github.com/gabrielruiu/spring-social-samples/tree/master/spring-social-quickstart
  • most classes contain links to the Yahoo documentation website, so you can consult the information there as well
  • I would appreciate very much if you would take the time to give me a short email describing your usage of this library, just so I can get a feeling of how useful the library is

Tips

  • if you want to build a filter for the Contacts resource (see ContactsFilter), you will most likely be using several enums to construct it:
ContactsFilter filter = new ContactsFilter()
        .withAndFilter(FieldType.EMAIL, SearchFilter.SearchFilterKey.PRESENT, "1")
        .sortBy(FieldType.EMAIL)
        .sortOrder(SortOrder.Order.DESC);
Contacts contacts = yahoo.contactsOperations().getContacts(filter);

These enums can take up some space on a single line, so to reduce the clutter, use static imports for each enum:

import static org.springframework.social.yahoo.filter.SearchFilter.SearchFilterConstraint.PRESENT;
import static org.springframework.social.yahoo.filter.SortOrder.Order.DESC;
import static org.springframework.social.yahoo.module.FieldType.EMAIL;

///other code
ContactsFilter filter = new ContactsFilter()
        .withAndFilter(EMAIL, PRESENT, "1")
        .sortBy(EMAIL)
        .sortOrder(DESC);
Contacts contacts = yahoo.contactsOperations().getContacts(filter);

At the time of writing (December 2014)

What is supported

  • only JSON payloads are used
  • only the Contacts API is implemented
  • the following endpoints are implemented:
ResourceMethodsNotes
ContactsGET
Contacts by category nameGET
Contacts filteringGET
ContactGET
CategoriesGET
Categories by contact cidGETAPI returns a 404 response

FAQs

Package last updated on 29 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc