james was offered and accepted the role of secretaries and minister to the earl of berkeley , one of the chief justices , but when he reached london he found that the secretaryship had been refused to thomas .
Swift worked for the Earl of Berkeley.